I have the following submit button:
When I use the follo
Pass the event parameter in the function callback Try this
$(document).ready(function(){ $("#submit").submit(function(event){ event.preventDefault(); console.log('test'); } });