eg-259:lecture7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
eg-259:lecture7 [2012/02/21 09:07] – [Form Validation] eechris | eg-259:lecture7 [2012/02/22 12:06] – [HTML5 Version of the Phone Number Validator] eechris | ||
---|---|---|---|
Line 382: | Line 382: | ||
</ | </ | ||
< | < | ||
- | | + | |
+ | <p>An example of the use of Regular Expressions for form validation. View source to see the code.</ | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | this can be used instead of JavaScript for form validation.</ | ||
+ | <p>In production, you would normally need to provide a JavaScript fallback for browsers that don't yet support the < | ||
+ | <!-- No need for onsubmit validator now --> | ||
<form id=" | <form id=" | ||
<label for=" | <label for=" | ||
<input id=" | <input id=" | ||
| | ||
- | | + | |
- | <!-- No need for onclick validator now --> | + | |
<input type=" | <input type=" | ||
</ | </ | ||
Line 396: | Line 403: | ||
</ | </ | ||
</ | </ | ||
- | |||
===== Debugging JavaScript: IE6+ ===== | ===== Debugging JavaScript: IE6+ ===== | ||
eg-259/lecture7.txt · Last modified: 2013/02/19 12:29 by eechris