I have some code that is working great, when a check box is checked, it disables three fields and sets values for those fields.
$(document).ready(function () {
$("#checkbox_1").change(function () {
$("#textbox_1").attr("disabled", $(this).attr("checked"));
$("#textbox_2").attr("disabled", $(this).attr("checked"));
$("#textbox_3").attr("disabled", $(this).attr("checked"));
$("#textbox_1").val(1);
$("#textbox_2").val("Classic");
$("#textbox_3").val(1);
});
});
My question is, how do I make it so I can set the values of those three fields back when the box is unchecked?