I have the following submit button:
When I use the follo
You need make sure you add event to the parameter list of the event function. I think some browsers have a global event, that's why it works in some browsers.
$(document).ready(function(){
$("#submit").submit(function(event){ // The event is passed to this function
event.preventDefault();
console.log('test');
}
});