I just started using jquery, and i have the following question. I've got the following HTML:
- <div class='payment_options closed'>
- <input id='payment1' name="payment_type" value="1" type="radio" />
- </div>
- <div class='payment_options closed'>
- <input id='payment2' name="payment_type" value="1" type="radio" />
- </div>
- <div class='payment_options closed'>
- <input id='payment3' name="payment_type" value="1" type="radio" />
- </div>
Now, i would like to, if the input is Selected, the 'closed' class changes to 'open'. I first tried .change, but that didnt work: