The solution looks so simple - but for the life of me I cannot get this to work on my survey.
I have enabled javascript:
Filter HTML for XSS: No
I too have a yes/no question type:
Type: Yes/No
I have copied this code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Initially disable the Next/Submit button
$('input[type="submit"]').attr('disabled', 'disabled');
// Listeners on Yes/No radios to toggle the Next/Submit button
$('input.radio[value="Y"]').click(function(){
$('input[type="submit"]').attr('disabled', '');
});
$('input.radio[value="N"]').click(function(){
$('input[type="submit"]').attr('disabled', 'disabled');
});
});
</script>
I then updated this code to reflect my particular question number.
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Initially disable the Next/Submit button
$('input[type="submit"]').attr('disabled', 'disabled');
// Listeners on Yes/No radios to toggle the Next/Submit button
$('#question199 input.radio[value="Y"]').click(function(){
$('input[type="submit"]').attr('disabled', '');
});
$('#question199 input.radio[value="N"]').click(function(){
$('input[type="submit"]').attr('disabled', 'disabled');
});
});
</script>
And nothing. Any thoughts? Much appreciated.
David