Multiple jquery dropdown menus on 1 page -
Multiple jquery dropdown menus on 1 page -
i'm new jquery , i'm trying create dropdown menu list on www.teefury.com (mens , woman sizes). came pretty close when click 1 of buttons of them open (or on sec seek first one). questions:
does know tutorial can utilize this? what's best way seek , create 1 on own? (i have html & css ready) how create 1 of dropdowns open on click , not of them or first one?this have far: http://users.telenet.be/ezarto/dropdown/
ps: first stackoverflow, please inform me of did wrong :)
pss: 1 hyperlink allowed, sorry you'll have copy/paste teefury one
use this , tranverse dom nail appropriate list trying show. refactored javascript so.
$(function() { $(".dropdown dt a").click(function() { $(this).closest('dt').siblings('dd').find('ul').toggle(); }); $(".dropdown dd ul li a").click(function() { var text = $(this).text(); $(this).closest('dd').siblings('dt').find('span').text(text); $(this).closest('ul').hide(); }); });
jquery jquery-ui drop-down-menu
Comments
Post a Comment