I am getting stuck in a page,where I’m using selectbox & checkbox,and they will behave like – in the select box options are ABC,BCD,BDE,AD,BE & in the checkbox the option are A,B,C,D,E.When I am selecting (suppose) BDE(or AD) from select box….in the checkbox B,D,E(or A and D) will be checked(automatic).
Any idea…or input will be appreciated.
my code(given below):
Edited: one more thing is that if I am using selectbox like(mention below),and want to implemented checked checkbox according to the select box.Any clue…
<body>
<form>
<select name="item" id="item" class="item" onChange=list(this.value) >
<script type="text/javascript">
document.write("<option value=-1>Item</option>");
count=item.length;
for(i=0;i<count;i++)
document.write("<option value="+i+">"+item[i]+"</option>");
</script>
</select>
<table>
<td>
<input type="checkbox" name="A" id="A" value="A" >A<br>
<input type="checkbox" name="B" id="B" value="B">B<br>
<input type="checkbox" name="C" id="C" value="C">C<br>
<input type="checkbox" name="D" id="D" value="D">D<br>
<input type="checkbox" name="E" id="E" value="E">E<br>
</td>
</table>
</form>
</body>
and on changing that particular select items(item) can all those option can be written in jquery(instead what you have answered) what u have mention(@ mohon ram)
and I have got a link here but not able to sort it on my answer perspective.
1 Answer