jQuery noob: toggleclass doesn't seem to toggle class. What am I doing wrong?

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-05-28T08:36:35Z Indexed on 2010/05/28 8:41 UTC
Read the original article Hit count: 198

Filed under:
|
|

Hi, I've been trying to make a button toggle a class, as well as show another div below it.

Here is a jsFiddle example I have made for you.

The first function works perfectly, shows and hides the div, but also I want the button itself to add and remove a class, I thought this would work but I seem to be doing something wrong.

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html