Use JQUERY to overlay two INPUT boxes to implement the user name and password required for login to implement prompt and user output, using jquery in an INPUT box, you can add two INPUT boxes with JQUERY to implement the user name and password you need to enter during login to implement prompt and user output, JQUERY is used to achieve this effect in an INPUT box. The specific method is as follows:
The following is the INPUT box code:
The Code is as follows:
The following is the JQUERY code:
The Code is as follows:
// Set the default search Value
$ (". Search_text"). focus (function (){
If ($ (". search_text"). val () = 'search '){
$ (". Search_text"). val ("");
} Else {
$ (". Search_text"). val ($ (". search_text"). val ());
}
});
$ (". Search_text"). blur (function (){
If ($ (". search_text"). val () = ''){
$ (". Search_text"). val ("Search ");
} Else {
$ (". Search_text"). val ($ (". search_text"). val ());
}
});
I will not adjust the format of Shenma. After all, it is not the IDE editor used in programming. If you are interested, you can check it!