I am trying to checked a checkbox using the id. I know we can specifically set the id like this
$('#myDiv input[id="001"]').prop('checked', true);
However, I am looping through my id from database and thus cannot specifically set an id to it. Is there anyway on doing this?
Aucun commentaire:
Enregistrer un commentaire