Jquery Checkbox on click - enable/disable Items

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');
}
});

Comments

Popular posts from this blog

Install Cpanm module error : No such file or directory opening compressed index

How to increase Elasticsearch Shard recovery Speed

Getting started with Python Flask application with MVC structure