Change the text of a div element using an AJAX POST request:
The post() method is used to perform an AJAX HTTP POST request.
| Parameter | Description |
|---|---|
| url | Required. Specifies the url to send the request to |
| data | Optional. Specifies data to send to the server along with the request |
| success(response,status,xhr) |
Optional. Specifies the function to run if the request succeeds Additional parameters:
|
| dataType |
Optional. Specifies the data type expected of the server response. By default jQuery performs an automatic guess. Possible types:
|
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|