jquery small problem

Posted by Azzyh on Stack Overflow See other posts from Stack Overflow or by Azzyh
Published on 2010-06-16T00:43:34Z Indexed on 2010/06/16 0:52 UTC
Read the original article Hit count: 223

Filed under:

how can i change this: (this script says that it should hide #writeComment if #tryout is checked )

$('#tryout').click(function () {
  $('#writeComment').toggle(!$(this).attr('checked'));
});

Now i dont want to have a checkbox that you check, but instead this link

<a id="tryout">Click to vote</a>

so then when you click on this "link", #writeComment hides...

© Stack Overflow or respective owner

Related posts about jQuery