I'd been reading up on implementing ajax with jquery.
Am I right to say, $.ajax()
is the only function we ever need? ie. we don't actually need the $.get
$.post
functions?
Lastly, lets say we're building this ajax form, we should bind the $.ajax
function to a submit button using .click
? We don't actually need to enclose the button in a form tag right?
So far, I'd only seen tutorials writing the jquery code with $.ajax
. But I have no idea how to implement this. Would be good if there's a guide that shows a complete jquery ajax form with the full html and jquery codes.