title: jquery $.ajax success not working
body: <p>for some reason  my $.ajax() is posting  but not providing a success message  which is rather strange because i am using the same code from another application just with different values </p>
  
  <pre><code>$("#submit").click(function(e)
      e.preventDefault();
      var email = $("#email_address").val();
      var url = "&lt;?=base_url()?&gt;" + "account/validate_registration";
      $.ajax({
          type:"POST",
          url:url,
          data:{"email_address":email},
          success: function(res,status){
              alert(res);
          }
      });
  });
  </code></pre>
  
  <p>Sometimes chrome developer console  displays the response of the php file which is </p>
  
  <pre><code>print_r($_POST);
  </code></pre>
  
  <p>I cant understand how it works in one application and not in this one</p>