28
rated 0 times
[
32]
[
4]
/ answers: 1 / hits: 55694
/ 9 Years ago, sun, june 14, 2015, 12:00:00
I searched more time with it but it's not work, I want to checkbox is disabled, user not check and can check it if some condition. Ok, now, I tried disabled them. I use jquery 2.1.3
<input type=checkbox class=checkbox1 id=chk name=check[] value=U01 />Banana
<input type=checkbox class=checkbox1 id=chk name=check[] value=U02 />Orange
<input type=checkbox class=checkbox1 id=chk name=check[] value=U03 />Apple
<input type=checkbox class=checkbox1 id=chk name=check[] value=U04 />Candy
$(window).load(function () {
$('#chk').prop('disabled', true);
});
More From » jquery