| Author |
Is there a way to create a drop down menu similar to that of a select button?
|
Toni Howlett
Ranch Hand
Joined: Jan 18, 2012
Posts: 35
|
|
I'm working on a site that needs to work on both desktop and mobile devices and i'm trying to add a drop down to multiple sections of my settings page. I want the user to be able to click it, and a list appears where they can select stuff like delete, add to group, add to new group and possibly a few other things.
A select tag would work perfectly if the shown text didn't change when you clicked on it. (I like select because on mobile - at least my android - it brings up a list on half the screen thats easy for the user to click).
Is there a way to attach functions to the select-list objects and then have the text shown on the select button go back to default?
Or is there a different kind of menu all together that accomplishes this.
I'm using jQuery/jQueryMobile
Thanks
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
Sure, bind a change handler that sets the value of the control to your "default" value.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Is there a way to create a drop down menu similar to that of a select button?
|
|
|