jquery tab error problem -


hello im trying jquery , im trying make simple tab menu, cant hide content, can see have made here

http://jsfiddle.net/yyj7v/

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;         }); }) 

js fiddle demo.

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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -