title: jQuery - Cancel form submit (using "return false"?)?
body: <p>I'm running into a bit of trouble while trying to cancel the submit of a form. I've been following this tutorial (even though i'm not making a login script), and it seems to be working for him.</p>
  
  <p>Here's my form:</p>
  
  <pre><code>    &lt;form action="index.php" method="post" name="pForm"&gt;
          &lt;textarea name="comment" onclick="if(this.value == 'skriv här...') this.value='';" onblur="if(this.value.length == 0) this.value='skriv här...';"&gt;skriv här...&lt;/textarea&gt;
          &lt;input class="submit" type="submit" value="Publicera!" name="submit" /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>And here's the jquery:</p>
  
  <pre><code>$(document).ready(function() {
      $('form[name=pForm]').submit(function(){
  
          return false;
  
      });
  });
  </code></pre>
  
  <p>I've already imported jQuery in the header and i know it's working. My first thought was that it might be outdated, but it's actually "just" a year ago.</p>
  
  <p>So do anyone see what's wrong?</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT: From what i've read the easiest and most appropriate way to abort the submit is to <strong>return false</strong>? But i can't seem to get it working. I've searched the forum and i've found several helpful threads but none of them actually works. I must be screwing something up.</p>