diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-09-17 15:37:42 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-09-17 15:37:42 +0100 |
commit | 8263926c35cc3d1a6138b97848b83e8534e57590 (patch) | |
tree | 0b8f398c10037a4ce1a7da11a1036ba468d5d60a /web/js | |
parent | 50785978cba677df93c63fbdc9f62dacb8feaafe (diff) | |
parent | 9d118fcb94e3724ceeb3c975155b7855c86a1c3a (diff) |
Merge branch 'issues/#1104-questionnaire-form-design'
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/fixmystreet.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js index 7d8c940d9..51fa01559 100644 --- a/web/js/fixmystreet.js +++ b/web/js/fixmystreet.js @@ -31,16 +31,16 @@ $(function(){ // Questionnaire hide/showings if (!$('#been_fixed_no').prop('checked') && !$('#been_fixed_unknown').prop('checked')) { - $('#another_qn').hide(); + $('.js-another-questionnaire').hide(); } - $('#been_fixed_no').click(function() { - $('#another_qn').show('fast'); + $('#been_fixed_no').on('click', function() { + $('.js-another-questionnaire').show('fast'); }); - $('#been_fixed_unknown').click(function() { - $('#another_qn').show('fast'); + $('#been_fixed_unknown').on('click', function() { + $('.js-another-questionnaire').show('fast'); }); - $('#been_fixed_yes').click(function() { - $('#another_qn').hide('fast'); + $('#been_fixed_yes').on('click', function() { + $('.js-another-questionnaire').hide('fast'); }); // Form validation |