hello,

I've a simple javascript that worked very well with an old version of
jquery , but have some problem with latest version of jquery:

given a code like this:
<div><a ... class="myclass">...</a></div>
<div></div>
<div>info to toggle</div>

when clicking on the link which class is "myclass", I want to toggle
the content in the second div after the one containing the clicked
link.

This script worked very well:

$(document).ready(function()
        {
          // Toggle Single Bibtex entry
          $('a.myclass').click(function()
                {
                    $
(this).parent('div').next('div').next('div').toggle();
                    return false;
                });

        });

but now I get the ""$ is not a function" error to the first line.

Any clue?

Thanks, Sergio

Reply via email to