title: Textarea form submit without refresh?
body: <p>Textarea isn't submitting the form with out refresh</p>
  
  <p>Code for submission of form without refresh</p>
  
  <pre><code>$(document).ready(function(){$("#post_reply").click(function(event) {
          $.post( '../services/leave_comment.php', $("#open_status").serialize(),  
          function( data ) 
          if(data.split("::")[1]==true){
              $("#data_status").html("Commented Successfully..");     
              $("#data_status").fadeOut(3000);               document.getElementById('_comment').value='';  
              $('#_comment').html("");
              location.reload();
          }else if(data.split("::")[1]==false){
              $("#data_status").html("Error occured in Comment Submission.. Try Again..");                +       
          $("#data_status").fadeOut(3000);  
          }
  
      }  
  );  
  });
  </code></pre>
  
  <p>Code for shift+enter for new line and enter for submit the form</p>
  
  <pre><code>function getCaret(el) {
      if (el.selectionStart) {
          return el.selectionStart;
      } else if (document.selection) {
          el.focus();
          var r = document.selection.createRange();
          if (r == null) {
              return 0;
          }
          var re = el.createTextRange(),
          rc = re.duplicate();
          re.moveToBookmark(r.getBookmark());
          rc.setEndPoint('EndToStart', re);
          return rc.text.length;
      }
      return 0;
  }
  $('.commenttextarea').keyup(function (event) {
      if (event.shiftKey &amp;&amp; event.keyCode == 13) {
          var content = this.value;
          var caret = getCaret(this);
          this.value = content.substring(0, caret) + "\n" + content.substring(caret, content.length - 1);
          event.stopPropagation();
      } else if (event.keyCode == 13) {
          $('.commentform').submit();
      }
  });
  </code></pre>
  
  <p>Here is the <strong><a href="http://jsfiddle.net/u4Ray/1/" rel="nofollow">Fiddle!!</a></strong></p>
  
  <p>Now the problem is, its refreshing after submit the form
  and sometimes enter key isn't working as it should.</p>
  
  <p>Detailed explanation appreciated. </p>