<form>
<input id='Ckh_0' name="Ckh_0" type='checkbox' checked=SetLayerDefaultVisible(0) data-iconpos=right />
<label for='Ckh_0'>port</label></td><td colspan='1' >
</form>
Hi, here a idea:
<html>
<form>
<input id='Ckh_0' name="Ckh_0" type='checkbox' checked=SetLayerDefaultVisible(0) data-iconpos=right/>
<input id='Ckh_1' name="Ckh_0" type='checkbox' checked=SetLayerDefaultVisible(0) data-iconpos=right />
<label for='Ckh_0'>port</label></td><td colspan='1' >
</form>
</html>
<script>
$(document).ready(function() {
$('#Ckh_0').change(function() {
var estado = $('#Ckh_0').prop('checked');
$('#Ckh_1').prop('checked', estado);
});
$('#Ckh_1').change(function() {
var estado = $('#Ckh_1').prop('checked');
$('#Ckh_0').prop('checked', estado);
});
});
</script>
Sorry by the code in the editor, example complete is in fiddle.
Thanks Alex
My above code generate two Checkboxes and one label , but i need one Checkbox with Label ?