I have the following submit button:
<input type="submit" name="submit" value="Send" class="mybutton" />
When I use the following code
$(document).ready(function(){ $("#submit").submit(function(){ event.preventDefault(); console.log('test'); } });
My page refreshes in Firefox, but not in Chrome. Can someone point me in the right direction?
I would like to use the submit button to call jQuery.ajax (not regular form submission)
source share