<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>
Thanks Alex
My above code generate two Checkboxes and one label , but i need one Checkbox with Label ?
Hi, here a idea:
<html>
<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 />
</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>
Edit fiddle - JSFiddle
Sorry by the code in the editor, example complete is in fiddle.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.