I have a "select" tag with the following options:
<select>
<option value="blue">Blue</option>
<option value="red">Red</option>
<option value="green">Green</option>
</select>
I want to add the "slideUp" and "slideDown" effect using jquery but I can't find a simple example to approach my need. The effect should look like this combobox example: Telerik Combobox
Here's one possible solution, you will need to play with the styling:
This method extends jquery with a
slidingSelect
function, which creates atoggle
div based upon the name of the select, and when that toggle div is clicked on the selectslidesDown
like it does in the Telerik Control. You will style the#{ID of Select}Toggle
in your CSS to create a better looking UI.I guess there is a select (option) hidden. When I press the button, the select appears under the button. When i choose any option, the button take the value chosen and the select disappears.
Hope your code will be share. :)