[jQuery] Selector help needed
with the markup like:i want to add a class "active" to , Link 2 (line 4), or links that have inner a.active links. how can i do it with jquery or even pure css?
[jQuery] Selector help needed
Here's my code: $(document).ready(function(){ $('#menulinks a').hover(function(){ setTimeout(function(){ $(this).stop().animate({ top : '40px', paddingTop : '40px' }); }, 1000); }); }); Before I added a timeout, (this) sufficed. With the timeout set, (this) did not select the hovered link. I tried another selector and it worked fine. How can I specify (this) for this situation? -- View this message in context: http://www.nabble.com/Selector-help-needed-tp23289341s27240p23289341.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Selector help needed
Hi All, This is my DOM structure: First Name: Middle Name: First Name: Middle Name: ... Questions: 1) how can I select the value Garry? I tried $('tr.child1 td input').eq(1).value But it does not work 2) How can I reset all values of input fields of tr.child2 without cycling through? Any help? -- View this message in context: http://www.nabble.com/Selector-help-needed-tp17508515s27240p17508515.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.