samedi 23 mai 2015

uncheck checkbox with jQuery

I am doing it like this (based on a web article):

$(document).ready(function () { 
  //alert('ready');   
  $('#chk2]').prop('checked',false); // this just does not work, it stays checked anyway!!!
});

The checkbox remains checked. Any other ideas? I am using version 1.8.2




Aucun commentaire:

Enregistrer un commentaire