02.06.2013 Views

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

Pro PHP and jQuery by Jason Lengstorf.pdf - Computer Science ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 9-25. The error message in an alert box after failing validation<br />

CHAPTER 9 ■ PERFORMING FORM VALIDATION WITH REGULAR EXPRESSIONS<br />

After clicking the OK button in the alert box, the user will be able to edit her entry without having to<br />

repopulate any fields.<br />

Summary<br />

In this chapter, you tackled using regular expressions for form validation. The concepts you learned can<br />

be applied to validating any type of data, <strong>and</strong> they will greatly aid you in making sure the information<br />

supplied in forms is usable <strong>by</strong> your applications.<br />

In the next chapter, you’ll learn how to extend the <strong>jQuery</strong> object, both <strong>by</strong> directly extending the<br />

<strong>jQuery</strong> core <strong>and</strong> <strong>by</strong> developing a custom plugin for <strong>jQuery</strong>.<br />

343

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!