Set Textfield if Checkbox Checked
by SullysRants
HTML
<input type="checkbox" name="application" id="application" />
<input name="impdate" type="text" id="impdate" />
JavaScript
$(document).ready(function () {
$(application).change(function () {
if ($(this).prop("checked")) {
$(impdate).val("Yes")
}
});
//to trigger the event on load in case the checkbox is checked when the page loads
$(implemented).trigger("change");
});