title: form submit in codeigniter using ajax
body: <p>Here when I submit my form and will check validation in js file and then that will call the kickerLogin() function 
  Got alert message of <code>datastring</code>, then this is not send to my url which is mentioned in ajax  but that will submit..........</p>
  
  <pre><code>function kickerLogin(){
      alert('hello friends');
      dataString=$('form[name=kickerLog]').serialize();
      alert(dataString);
      $.ajax({
          type:"POST",
          url:"&lt;?php echo $GLOBALS['base_url']; ?&gt;ajax/user-ajax.php?mode=kickerLogin",
          cache: false,
          data: dataString,
          dataType: "json",
  
          success: function(data) {
              alert(data);
                  if(data.success == "yes")
                  {   
                      $('#kickerLog').submit();   
                  }
                  else if(data.success == "no")
                  { 
                      if(data.status=="emailfail"){
                      $('li.log_error').show();
                       $('li.log_error').html("Email id not verified");
                      } 
                      else if(data.status=="rejected"){
                          alert("Your account is inactive by admin");
                      } 
  
                   else{  
                       $('li.log_error').show();
                       $('li.log_error').html("Invalid Email / Password");
                       $("#loginEmail").css("border","1px solid red");        
                       $("#loginPassword").css("border","1px solid red");    
                   }
                  }
  
                  else {
                      alert(" Occured internal Error.please check network connection" );
                  }
          }
      });
  }
  </code></pre>