title: Prevent Gravity Forms submitting
body: <p>I'm trying to prevent Gravity Forms (Wordpress) form from being submitted and pass field values to the simplest javascript instead. But somehow it just doesn't work.</p>
  
  <p>I've tryed:</p>
  
  <pre><code>jQuery(document).ready(function() {
      $("#gform_1").submit(function(event) { // gform_1 - id of the form
          alert('Fired!');
          return false;
      });
  });
  </code></pre>
  
  <p>But it's not getting triggered - form still gets submitted and I can see that confirmation message. Can you tell me, what's wrong?</p>
  
  <p>Just to be clear: I don't want to see those entries in my database, I don't want to my form being removed and see that confirmation message etc (that's why I'm not using hooks like gform_post_submission). I just want to use some form data in my script. Is it possible and how? Thanks in advance!</p>
  
  <p>edit: Got this sorted out: the script was inside a post, so I had to use "jQuery("#gform_1")" instead of "$("#gform_1")".</p>