Hi
This is a little outside of the plugins support but you will probably know straight away if its because of the gravity forms.
I'm trying to run this basic script when my from button is clicked.
My input markup below
<input type="submit" id="gform_submit_button_1" class="button gform_button" value="Send" tabindex="7">
These are all the various scripts below I've tried to run when the input button is clicked. Non of them work, but I've tested the function, and it definitely works 100% - but it does not work when it's integrated with the form button.
Script 1
$("input#gform_submit_button_1").on('click', function () {
$contactSlide.stop().css("top","0");
});
Script 2
$("form#gform_1").submit(function(event) {
$contactSlide.stop().css("top","0");
});
Script 3
$("input#gform_submit_button_1").focus(function () {
$contactSlide.stop().css("top","0");
});
I've tried all these above and they should logically work, but they are not, I've tried return false on them all (but obviously this kills the form) and i've also tried return true, which allows the form to submit but does not run the function.
Is it because of gravity forms this is not working?
Thanks for any advice.