loading...

re: Ignoring ajax request VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Your URL looks suspicious. That looks like a file path, not an endpoint.
 

The problem is that it is ignoring the ajax request at all, no errors, I even tried to console.log a "Hi" message after $('#FriendForm').submit(function(){ and it didn't work.

 

It looks like you're querying with JQuery too soon. You haven't yet appended it to the DOM when you're trying to add the submit method to it.

Oh, I didn't think about that. I ended up by creating that form directly in html and query with jQuery. Now it's fine :). Thank you for the answer.

code of conduct - report abuse