AJAX instance
AJAX instance
To help you understand how AJAX works, we have created a small AJAX application:
Instance
Modify this text content using AJAX
Try it »
AJAX instance parsing
The AJAX application above contains a div and a button.
The div section is used to display information from the server. When the button is clicked, it is responsible for calling the function named loadXMLDoc():
<div id="myDiv">
<h2>Modify this text content using AJAX
</
h2
</
div
<
button
type
=
"
button
"
onclick
=
"
loadXMLDoc()
"Modify content
</
button
Next, add a