Thanks Erik, i changed it to class and it works great!!
Thanks
Justin
On 11/9/06, Erik Beeson <[EMAIL PROTECTED]> wrote:
> You're confusing IDs and classes. It's pretty basic CSS, so you shouldn't
> have any trouble finding info on google. Every id=... has to be unique, but
> more than one thing can have the same class=...
> For your code, that means use td class="slickbox2" instead of id, and then
> select it with $('.slickbox2').toggle().
>
> --Erik
>
>
> On 11/8/06, Justin Kelly <[EMAIL PROTECTED]> wrote:
> >
> > 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: [EMAIL PROTECTED]
> >
> > jabber: [EMAIL PROTECTED]
> > gtalk: [EMAIL PROTECTED]
> > msn: [EMAIL PROTECTED]
> > yahoo im: justinjameskelly
> > icq: 202893989
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/