daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jul 13th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function () {
  2.     $('.submitMe').click(function(e){
  3.         e.preventDefault();
  4.         var hasError=false
  5.        
  6.         if($('input[name="age_grp_level"]:checked').length==0) {
  7.             $( "#question-one-error" ).show();
  8.             hasError=true;
  9.         }
  10.        
  11.         if($('input[name="marital_status_level"]:checked').length==0) {
  12.             $( "#question-two-error" ).show();
  13.             hasError=true;
  14.         }
  15.        
  16.         if($('input[name="homeowner_level"]:checked').length==0) {
  17.             $( "#question-three-error" ).show();
  18.             hasError=true;
  19.         }
  20.        
  21.         if($('input[name="poc_level"]:checked').length==0) {
  22.             $( "#question-four-error" ).show();
  23.             hasError=true;
  24.         }
  25.        
  26.        
  27.         if($('input[name="plan_tenure_level"]:checked').length==0) {
  28.             $( "#question-six-error" ).show();
  29.             hasError=true;
  30.         }
  31.        
  32.         if (!hasError) {
  33.             var qString     = $("#form").serialize();
  34.             window.location = "nf-sfr-results.html?"+qString;
  35.         }
  36.     });
  37. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top