jquery tab error problem -
hello im trying jquery , im trying make simple tab menu, cant hide content, can see have made here
hope can tell me im doing wrong
this how i'd it:
$(function() { var tabcontainers = $('div.tabs > div'); tabcontainers.hide(); $('.tabsnavigation a').click( function(){ var = $(this).parent().index(); $(tabcontainers).eq(which).show().siblings().filter('div').hide(); return false; }); })
notes:
- as implied in comment question: using mootools, rather jquery in demo. won't work. or might, rarely, due syntax/use-differences
filter()
misspelled, , couldn't work.- i couldn't see, in demo, click-handling effect action, added in.
Comments
Post a Comment