Last active
August 29, 2015 14:07
-
-
Save frankstallone/a331a4e1b28793fa0a1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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