JQuery implements the textarea text box with a translucent text prompt effect, jquerytextarea
JQuery implements a text prompt with translucent text in the textarea text box:
Textarea text boxes are generally used to edit large text segments, such as editors or simple message reply functions. Some text boxes in textarea have the default prompt language, the following describes how to use jQuery to implement this function.
The Code is as follows:
<! DOCTYPE html>
The above Code meets our requirements. The principles and code are relatively simple. We will not introduce them much here. For more information, see related reading.
Related reading:
1. For details about the focus event, see the focus event section of jQuery.
2. For more information about the hide () function, see the hide () method section of jQuery.
3. For details about the toggle () function, refer to the toggle () method section of jQuery.
4. For details about the css () function, see the css () method section of jQuery.
5. For details about the position () function, see the offset () and position () usage of jQuery.
6. For blur events, refer to the section blur events in jQuery.
The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 12406.
For more information, see: http://www.softwhy.com/jquery/