Hey,
Im trying to learn jQuery and wanted to figure out the ajax part of it.
I have a form and wanted it to load html into another div based on whats in the form. I can't figure out what the jQuery code is to to POST the values of each form to the php file...
JQuery Forms Ajax
Moderator: General Moderators
Code: Select all
$.post( url, data, callback);http://docs.jquery.com/Ajax/jQuery.post
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
the "data" part is an object, you can build it on the fly like this:
...etc...
Code: Select all
{name: $('#name').val(), title: $('#title').val()}