<! Doctype html Public " -// W3C // dtd html 4.01 transitional // en " >
< Html >
< Head >
< Title > Hello JQ </ Title >
< Meta HTTP - Equiv = " Content-Type " Content = " Text/html; charsets = UTF-8 " >
< Script Language = " Javascript " SRC = " JS/jquery-1.3.2.js " > </ Script >
< Script Language = " Javascript " >
Function Getusernamevalues (strvalue)
{
$ . Get ( " Ajax. php " , {Value : Strvalue} , Function (Text ){
Alert (text );
});
}
</ Script >
</ Head >
< Body >
< Form name = " Form " Method = " Post " >
< Div Style = " Text-align: center; margin-top: 20%; " >
< Table >
< Tbody >
< Tr >
< TD > < Input type = " Text " ID = " Txtname " Name = " Txtname " Value = "" Onblur = " Return getusernamevalues (this. value ); " /> </ TD >
</ Tr >
</ Tbody >
</ Table >
</ Div >
</ Form >
</ Body >
</ Html >
Ajax. php
<? PHP
Echo $ _ Get [ ' Value ' ];
?>