Web Development with jQuery®

(Elliott) #1

Filtering a Selection (^) ❘ 39
contactNewsletterForm.ready();
}
);
This form is then submitted to the following HTML page, called Example 2-2 Submitted.html,
which just confi rms that the form was submitted. In the real world, this HTML form would more
than likely go to a server-side program that would also validate input and actually perform the
action of signing up the user for the newsletter. For this simplifi ed example, you omit that part of
the process and focus only on the client-side components.
<!DOCTYPE HTML>




content="application/xhtml+xml; charset=utf-8" />

Contact Form






Thank you for submitting the form.




The source code in the preceding examples results in the output that you see in Figure 2-2.

FIGURE 2-2


http://www.it-ebooks.info

Free download pdf