Im using this script to disable and enable input box. When I check the box, the input is enabled, but when I uncheck the box the input is still enabled.
Not sure how to fix this.
$(document).ready(function(){
$(".ncjhs_student").attr("disabled",true);
$(".send_records").attr("disabled",true);
$("#send_records").click(function(){
$(".send_records").removeAttr("disabled");
});
$("#ncjhs_student").click(function(){
$(".send_records").removeAttr("disabled");
});
});