mercredi 22 mai 2019

Change the status of toggle using jquery

I am trying to change the status of toggle switch using jquery but not success. this is the code of jquery

$('#bandwidthcap').checked='false';

and I tried using this way

$('#bandwidthcap').attr('checked','false')

this is the code of html

<input type="checkbox"  name="bandwidthcap" id="bandwidthcap" class="switchery" data-color="primary"/>




Aucun commentaire:

Enregistrer un commentaire