title: submit a form with jquery serialize() in Code igniter
body: <p>im using CI in my  project and currently i have a issue. i  am sending a values through jquery serialize but the code is not working ... </p>
  
  <p>here is the code.. in my view my form id is 'form' and button type is submit and id is 'btn' ..</p>
  
  <pre><code>    &lt;script&gt;
  
     $('#btn').click(function() {
         form = $("#form").serialize();
  
       $.ajax({
         type: "POST",
         url: "&lt;?php  echo site_url('categoryController/addCategory'); ?&gt;",
         data: form,
  
         success: function(data){
             alert('Successful!);
         }
  
       });
  
       return false;  //stop the actual form post !important!
  
    });
  </code></pre>
  
  <p></p>