jeudi 2 juillet 2015

Input checked changes button class

Looking to remove disable class from button and add enable class when the radio button is checked as well as 1 or more checkbox is checked.

<div>
    <input name="select-customer" type="radio">btn 1
    <input name="select-customer" type="radio">btn 2
</div>
<div>    
    <input type="checkbox" name="choice-selection">Choice 1
    <input type="checkbox" name="choice-selection">Choice 2
    <input type="checkbox" name="choice-selection">Choice 3
    <input type="checkbox" name="choice-selection">Choice 4
</div>

http://ift.tt/1f5jnnA




Aucun commentaire:

Enregistrer un commentaire