DataSpy Posted December 1, 2011 Share Posted December 1, 2011 What I want is to have a button and when the button is pressed it creates a drop down menu and if it's pressed again then it creates a second drop down menu. I've been googling but haven't found anything yet if someone has an idea or a tutorial that they could direct me to that would be awesome!!!! Any help is greatly appreciated, thanks in advance!!! Quote Link to comment https://forums.phpfreaks.com/topic/252239-how-to-add-a-drop-down-menu-by-pressing-a-button/ Share on other sites More sharing options...
Spring Posted December 1, 2011 Share Posted December 1, 2011 Use jquery to hide the two drops downs. Onclick show the first one, on another click show the second one. I don't know if there's a tut on what you're looking for, but you can use Jquerys documentation to look through the functions. http://docs.jquery.com/Main_Page Ill link the one's I think you'll be using. http://api.jquery.com/hide/ http://api.jquery.com/slideUp/ http://api.jquery.com/click/ Just use a small amount of logic and tada. Quote Link to comment https://forums.phpfreaks.com/topic/252239-how-to-add-a-drop-down-menu-by-pressing-a-button/#findComment-1293276 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.