title: Kohana - how to create form without refresh?
body: <p>How to create jQuery + ajax form without refresh?
  This is my controller and views: </p>
  
  <p><a href="http://pastebin.com/GL5xVXFZ" rel="nofollow">http://pastebin.com/GL5xVXFZ</a></p>
  
  <p>In "clear" PHP I create something like this:</p>
  
  <pre><code>$(document).ready(function(){
      $("form#submit").submit(function() {
  
      var note = $('#note').attr('value');
  
          $.ajax({
              type: "POST",
              url: "add.php",
              data: "note="+ note,
              success: function(){
                  $('form#submit').hide(function(){$('div.success').fadeIn();});
  
              }
          });
      return false;
      });
  });
  </code></pre>
  
  <p>in add.php file is INSERT to Database.</p>