[jQuery] total noob question
Hi All,
Im very new to javascript and jquery so please be gentle :)
What im trying to do is have a button that toggles(or fade etc..) a
number of rows in a table.
ie. click button, 10 rows show/hide
Currently it works great for the first row but i cant get it to do the
toggle for the rest of the rows, ive tried using each and find but i
cant get it happening
Could someine please take a look at the below code and let me know how to do
### jquery ##
$('a#slick-toggle2').click(function() {
$('#slickbox2').toggle();
return false;
});
##########
### html code ##
<a href=\"#\" id=\"slick-toggle2\">Toggle2</a>
<tr id='slickbox2'>
<td colspan=2>$c_nameField</td><td colspan=4></td>
</tr>
<tr id='slickbox2'>
<td colspan=6 align=left>$c_attentionField,</td>
</tr >
.......
############
Any help would be greatly appreciated
Cheers
Justin
--
email: justin@kelly.org.au
jabber: justin@jabber.org.au
gtalk: linuxppc@gmail.com
msn: justinjameskelly@hotmail.com
yahoo im: justinjameskelly
icq: 202893989
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/