Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('.submitMe').click(function(e){
- e.preventDefault();
- var hasError=false
- if($('input[name="age_grp_level"]:checked').length==0) {
- $( "#question-one-error" ).show();
- hasError=true;
- }
- if($('input[name="marital_status_level"]:checked').length==0) {
- $( "#question-two-error" ).show();
- hasError=true;
- }
- if($('input[name="homeowner_level"]:checked').length==0) {
- $( "#question-three-error" ).show();
- hasError=true;
- }
- if($('input[name="poc_level"]:checked').length==0) {
- $( "#question-four-error" ).show();
- hasError=true;
- }
- if($('input[name="plan_tenure_level"]:checked').length==0) {
- $( "#question-six-error" ).show();
- hasError=true;
- }
- if (!hasError) {
- var qString = $("#form").serialize();
- window.location = "nf-sfr-results.html?"+qString;
- }
- });
- });
Add Comment
Please, Sign In to add comment