Hey everyone I am trying to .submit some values with ajax response and i want to stay on current page with no refresh or $_POST.
At the 3rd image you will se my jquery script. I tried to alert(‘1’); etc in it. Even in the first line of function it does not alert. Strangely, It does the $_POST of the form. but not my ajax submit. as it doesnt do any process, “return false;” doesnt work too.
At the 2nd image, you see my form tag, its ID is correct its action is set to a javascript which is not necessary to run. I tried it with no “method” with no “action” with “javascript:;”
At the 1st image you will see where should my ajax response get placed. I’m searching for answer for hours. Thanks in advance for any help or comments.



Remove the current
return false;because it only runs if the condition in the if statement is true.At the end of the submit block, addreturn false;Example: