I can disable the textbox when the checkbox is selected, but I can't figure out how to clear the textbox if anything is in it.
<input type="text" id="form_sc1"/>
<input type="checkbox" id="form_setchange"/>
JQuery
$(document).ready(function(){
if($('input.form_setchange').is(':checked')){
$("#form_sc1").attr("disabled", "disabled");
}
$("#form_sc1").val("")and correct your selector instead of$('input.form_setchange').is(...it should be$('input#form_setchange').is(...$("#form_sc1").prop("value", "");