<strong>1. Reasons for demand<br></strong>When filling in the form, the following effects need to be achieved<br><img alt="" src="http://files.jb51.net/file_images/article/201401/20140126095840.png"><br><strong>2. Specific implementation<br></strong><div class="codetitle"> <span><a style="CURSOR: pointer" data="14976" class="copybut" id="copybut14976" onclick="doCopy('code14976')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code14976"> <br><!DOCTYPE html PUBLIC "-//W3C//DTDHTML 4.01 Transitional//EN" "http ://www.w3.org/TR/html4/loose.dtd"><br><html><br><head><br><meta http-equiv="Content-Type"content= "text/html; charset=UTF-8"><br><title>There is no text after clicking the mouse, but there is text after moving the mouse away</title><br><script language="JavaScript"src= "../jQuery/jquery-1.7.1.min.js"></script><br><script type="text/javascript"><br> $(function(){<br> /*Trigger*/<br> $ ("#Account") when entering the focus point. ){<br> $(this).val(""); ( function(){<br> alert("12");<br> varoldValue = $(this).val();<br> if(oldValue == ""){<br> $(this) .val( this.defaultValue);<br> ; ;input id="account" name="account" type="text" value="Please enter your account number"><br></body><br></html><br><br> </div>