An AJAX object is created, but now what? How do we display data on the page from AJAX? One way to do this is with forms.
This tutorial focuses on:
- AJAX and forms
AJAX and forms
There is no special form or forms you have to use with AJAX to get data from it. A regular form will do, the only difference is with AJAX the form does not need a submit button and the data will get sent without it. This is the magic of AJAX!
The above form will be used together with AJAX in the next tutorial and it will display some text in the "advice" field once the user enters their name into the "name" field.