There's definitely nothing wrong with the JQuery. Can you post a test
case so that we can see all of the pieces to the puzzle?

On Apr 22, 7:07 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> Your code looks fine, and I wasn't able to reproduce what you're describing:
>
> http://jsbin.com/ucaqi
>
> - Richard
>
> On Wed, Apr 22, 2009 at 6:18 PM, kape <erlend.so...@gmail.com> wrote:
>
> > The following code worked fine in 1.2.6 but after upgrading to 1.3.2
> > only the first table cell is shown/hidden.
>
> > <table>
> >  <tr>
> >    <td class="more">a</td>
> >    <td class="more">b</td>
> >    <td class="more">c</td>
> >    <td class="more">d</td>
> >  </tr>
> > </table>
> > <span id="moreLess">more</span>
>
> > ...
>
> > jQuery('#moreLess').click(function() {
> >  if(jQuery(this).text() == 'more') {
> >    jQuery(this).text('less');
> >    jQuery('.more').show();
> >  } else {
> >    jQuery(this).text('more');
> >    jQuery('.more').hide();
> >  }
> > });
>
> > Version 1.2.6 used to add style="display: none;" when hiding, and
> > would remove it when showing.  Version 1.3.2 adds toggles between
> > style="display: none;" and style="display: table-cell;".  I don't
> > think that matters really, what does matter however is that if I alert
> > jQuery('.more').length I get 1 not 4.  Am I doing something wrong?
> > Thanks.

Reply via email to