Skip to content

Instantly share code, notes, and snippets.

@frankstallone
Last active August 29, 2015 14:07
Show Gist options
  • Save frankstallone/a331a4e1b28793fa0a1d to your computer and use it in GitHub Desktop.
Save frankstallone/a331a4e1b28793fa0a1d to your computer and use it in GitHub Desktop.
function statusQuestions() {
'use strict';
// Enable/disable whyNoResponse after checking if firm responded.
if ($('#ppcNo').prop('checked') === true) {
$('select[name=whyNoResponse]').prop('disabled', false);
$('input[name=ppcConsult],input[name=ppcCase]').prop('disabled', true);
} else if ($('#ppcYes').prop('checked') === true) {
$('select[name=whyNoResponse]').prop('disabled', true);
$('input[name=ppcConsult],input[name=ppcCase]').prop('disabled', false);
}
}
// Run statusQuestions() when ppcRespond
$('input[name=ppcRespond]').on('click', function(){
'use strict';
statusQuestions();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment