I have a dropdown. I have a button too.
I have special requirement.
When a user click on the button, the dropdown should be expanded.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While you can’t achieve exactly what you want, I came up with alternative way. When the button is clicked you can set the drop down
sizedynamically to the amount of items it got, causing it to “open” and show all the items.Then, when selecting an item you can set the
sizeback to 1. This effectively has the same look and feel like what you want.Complete code for this would be:
Live test case.