lundi 28 décembre 2015

Dependent checkbox on array input checkboxes

I have two array checkboxes namely chk1 & chk2 this checkboxes data are generated dynamically. When i check chk1 UK means chk2 90 has to be checked. if US means 60 has to be checked and so on. any suggestion to do this task?

<input type="checkbox" name="chk1" id="chk1" value="UK"> UK
<input type="checkbox" name="chk1" id="chk1" value="US"> US
<input type="checkbox" name="chk1" id="chk1" value="IN"> IN

<input type="checkbox" name="chk2" id="chk2" value="90"> 90
<input type="checkbox" name="chk2" id="chk2" value="60"> 60
<input type="checkbox" name="chk2" id="chk2" value="10"> 10




Aucun commentaire:

Enregistrer un commentaire