javascript - Prevent Gravity Forms submitting -
i'm trying prevent gravity forms (wordpress) form being submitted , pass field values simplest javascript instead. somehow doesn't work.
i've tryed:
jquery(document).ready(function() { $("#gform_1").submit(function(event) { // gform_1 - id of form alert('fired!'); return false; }); });
but it's not getting triggered - form still gets submitted , can see confirmation message. can tell me, what's wrong?
just clear: don't want see entries in database, don't want form being removed , see confirmation message etc (that's why i'm not using hooks gform_post_submission). want use form data in script. possible , how? in advance!
edit: got sorted out: script inside post, had use "jquery("#gform_1")" instead of "$("#gform_1")".
Comments
Post a Comment