Hello. Am new to jquery and ajax. I need to make an ajax call that will add or remove a user's favorite location on click. The two values are passed in json: result and locationcode. This is what I have so far, not sure how to construct the rest:
The docs for the $.post function are here: http://docs.jquery.com/Ajax/jQuery.post
But basically, your script will look something like this:
The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)