jeudi 2 juillet 2015

Check if checkbox with specific id is checked JQuery

Please help me how to identify if a checkbox with specific id is checked/unchecked.

<input name="A" id="test" type="checkbox" value="A" /> 
<input name="B" id="test" type="checkbox" value="B" />
<input name="C" id="test1" type="checkbox" value="C" />
<input name="C" id="test1" type="checkbox" value="D" />

If i check the checkbox with id="test" and name="a", then the event should fire and otherwise it should not for rest of the checkbox with different id other than "test"

Please help




Aucun commentaire:

Enregistrer un commentaire