Drop List

Regular <select> input is limited. For example, it is hard to use this control on a large set of options. To provide a solution, I have implemented drop down list based on a text input filed but with a dynamic list of options that gets filtered as you type.

Preview
   Cannot type any text, but only items from the list
   You can type any text
Code

Options

You can provide various options for numeric fields as second argument. The structure of the options object is below:
Item Object

Set Value From JavaScript

To set a different value from JavaScript you need to change $('#id').data('selected') and refresh the field: In 1.4.0, you should be able to do it with

User Comments

comments powered by Disqus