$(document).ready(function(){
$('.check').each(function() {
${this}.prop('checked',true).checkboxradio("refresh");
console.log($(this).attr("value"));
});
});
I used the above code with HTML as below
<input type="checkbox" class = "check" value="one">
Aucun commentaire:
Enregistrer un commentaire