I'm using Fireform.org to for collecting data from a form. But I cannot seem to get an event listener or anything to happen when the form is submitted (submits to fireform just fine).
Tried the following methods already to no avail:
using action="javascript"
<form id="contactForm" action="javascript:confirmSubmit();" method="post" class="nobottommargin">
using onsubmit="":
<form id="contactForm" onsubmit="confirmSubmit()" method="post" class="nobottommargin">
using jquery using .on as well as .submit : function confirmSubmit() { alert("hello"); }
$( "#contactForm" ).on("submit", function() {
alert("hello me ");
});
$('#contactForm').submit(function(){
confirmSubmit();
});
</script>
What I want is to trigger a confirmation message when the form is submitted (this is a static page, no backend PHP processes available, only javascript). The form is submitting to Fireform.org just fine.