Reputation: 25
How can a checkbox inside a drop down menu using javascript to be implemented so that every time you click the menu to change situation?
Upvotes: 0
Views: 3489
Reputation: 3846
The website you have linked presents a list along this lines: http://jsfiddle.net/XJWkH/
Of course this is just a raw example but basically this is the way the dropdown list on the site works. When you click on a dropdown/submenu element, jQuery adds or removes 'checked' class on that element.
Upvotes: 2
Reputation: 24198
jQuery is the easiest path here. I have used this plugin with great success and have rolled my own as well.
Good luck!
Upvotes: 1