jquery - slideDown Doesn't work for me -
why doesn't jquery code work?
$(document).ready(function () { $('currentpage').click(function() { $('myaccount').slidedown('slow', function() { // animation complete. }); }); }); <li><a class="currentpage">home</a></li> <li><a class="myaccount">my account</a></li>
anyone got ideas? don't.
we use dots select classes: $('.class_name')
$('.currentpage').click(function() { $('.myaccount').slidedown('slow', function() { // animation complete. }); });
in version, it's looking <currentpage>
tag.
edit
an example.
might seem 'not working' because myaccount link visible, sliding down won't change thing. thus, i've hidden in example above.
Comments
Post a Comment