Normally works but when trying for ajax insert does not work.
Here is my form(no form action in html):
name:
You need to prevent default form submit:
$('#submit').click(function(e){ e.preventDefault() // do your ajax });