I have used this code to enable/disable textboxes in the onclick of a Checkbox
$('#by_cheque').click(function() {
if ($('#by_cheque').is(':checked')) {
$('#payable_name').removeAttr('disabled');
} else {
$('#payable_name').attr('disabled', 'disabled');
}
});
No comments:
Post a Comment