01.
<script language=
"JavaScript"
>
02.
function
chkus() {
03.
$(
"#load-us"
).show();
04.
jQuery.ajax({
05.
url:
"reg-chk-us.php"
,
06.
data:
'username='
+$(
"#username"
).val(),
07.
type:
"POST"
,
08.
success:
function
(data){
09.
$(
"#chk-us"
).html(data);
10.
$(
"#load-us"
).hide();
11.
},
12.
error:
function
(
date
){}
13.
});
14.
}
15.
function
chkem() {
16.
$(
"#load-em"
).show();
17.
jQuery.ajax({
18.
url:
"reg-chk-em.php"
,
19.
data:
'email='
+$(
"#email"
).val(),
20.
type:
"POST"
,
21.
success:
function
(data){
22.
$(
"#chk-em"
).html(data);
23.
$(
"#load-em"
).hide();
24.
},
25.
error:
function
(
date
){}
26.
});
27.
}
28.
</script>
29.
<div id=
"frmCheckUsername"
>
30.
<form method=
"POST"
>
31.
<table width=
"300"
>
32.
<tr>
33.
<td width=
"50"
>User</td>
34.
<td align=
"left"
>
35.
<input name=
"username"
type=
"text"
id=
"username"
class
=
"demoInputBox"
onblur=
"chkus()"
autocomplete=
"off"
style=
"width:150px;"
required>
37.
<span id=
"chk-us"
></span>
38.
</td>
39.
</tr>
40.
<tr>
41.
<td width=
"50"
>Email</td>
42.
<td align=
"left"
>
43.
<input name=
"email"
type=
"text"
id=
"email"
class
=
"demoInputBox"
onblur=
"chkem()"
autocomplete=
"off"
style=
"width:150px;"
required>
45.
<span id=
"chk-em"
></span>
46.
</td>
47.
</tr>
48.
</table>
49.
<input type=
"submit"
>
50.
</form>
51.
</div>