183
rated 0 times
[
185]
[
2]
/ answers: 1 / hits: 18028
/ 11 Years ago, wed, july 17, 2013, 12:00:00
Why is that checkbox inside the bootstrap modal not working?
I use this code to make it working but still have a problem
documentBody.on('click','.checkInp',null,function(e) {
var checkbox = $(this).find(:checkbox),
checked = checkbox.is(:checked);
checkbox.prop(checked, !checked);
});
documentBody.on('click','.checkInp :checkbox',null,function(e) {
$(this).parent('span').trigger('click');
});
when i click it there is no check appears when its unchecked or it is not uncheck when its check? but if i click the span area the checkbox is marked as check or uncheck
here is my fiddle
More From » twitter-bootstrap