Wednesday, December 24, 2008

What I have done

I have made some changes in my Sexy Combo jQuery plugin. I have added three new configuration options that allow you to set combo's width, empty text and perform autofilling. The first option is obvious. The second option lets you use combobox without using labels (empty text appear when the text input has no focus and the user did not input something to it), and I think it may be good for some layouts. Autofilling option allows you to configure the plugin so that the first item of the dropdown list will become the value of the text input when the dropdown list is shown. However, the text that was added to the input would be selected, so the end user will be able to easily remove it.

I have also fixed 2 issues. The first was visible when you had combobox at the bottom of the page, so dropdown list caused the window to scroll. The second was that Sexy Combo did not allow to "jump" to another form elements using TAB key.

P.S. Thanks to Nikita Melnichenko who told me about TAB key issue and the author of 37 Phenomenal jQuery Plugins and Demos for Developers who mentioned Sexy Combo in his great article.

5 comments:

Mte90 said...

But the < option value="24" selected > 24 < /option > not work!
I have insert this wonderful plugin but this not work with the selected.
I use this in a cms and not possible to use the selectboxDefaultValue.
You can help me?

Vladimir said...

I am not sure I have understood your problem. Please describe it more precisely.

Mte90 said...

I have a select with more option but the option selected not work correctlly because the field default are clean.
I not use the selectboxdefaultvalue because i use cms and not possible correct all the select for use this option.
Your plugin would verifiy the option selected and insert the value on the field.

Vladimir said...

The problem is still not clear for me. Try to use new version of Sexy Combo, a have added config option that allows to make combo's initial value from the selectbox's selected option.

Mte90 said...

The plugin do not work with this option Disabled of the selectbox.
Thnis is a link with example of the disabled option.
http://www.mredkj.com/tutorials/tutorial001.html