[jQuery] Re: get class or id

2008-06-03 Thread jgarcia
thanks, the code run perfect in firefox, but in IE 7 don't works well... the divs is show and hide immediately... do you know why? $(document).ready(function() { $('div.menu-h2').hide(); //$('div.menu-h3').hide(); $('.menu-h1 ul li a').click(function() { var t =

[jQuery] Re: get class or id

2008-06-02 Thread Hamish Campbell
Two elements should never have the same ID - make sure the links and the paragraphs do NOT have the same ID. Some people use the 'rel' tag for this sort of thing. Use the class attribute to denote objects that should be grouped (ie, the paragraphs you want to hide) Eg: 001 002 003