Java Reference
In-Depth Information
Using these callback queue methods does require you to write slightly more code, but they make
your code's intentions absolutely clear. Plus, using them is generally accepted as a best practice, and
you'll find them used in most modern jQuery‐based code that you read.
revisiting the Form Validator
trY it out
Apply what you've learned and modify the form validator from ch14 _ example1.html . Open your text
editor and type the following code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chapter 16: Example 2</title>
<style>
.fieldname {
text-align: right;
}
.submit {
text-align: right;
}
</style>
</head>
<body>
<form>
<table>
<tr>
<td class="fieldname">
Username:
</td>
<td>
<input type="text" id="username" />
</td>
<td>
<a id="usernameAvailability" href="#">Check Availability</a>
</td>
</tr>
<tr>
<td class="fieldname">
Email:
</td>
<td>
<input type="text" id="email" />
</td>
<td>
<a id="emailAvailability" href="#">Check Availability</a>
</td>
</tr>
<tr>
<td class="fieldname">
Password:
</td>
<td>
Search WWH ::




Custom Search