您当前位置:编程帮手 > 知识 > 知识 > HTML和JS > jQuery > 内容
代码库
2015-03-02 13:59:37 访问(1570) 赞(0) 踩(0)
<script type="text/javascript" language="javascript" src="<%=jQuery%>"></script> <input type="text" name="uName" value="slowx"/> <input type="text" name="uName1" value="slowx"/> <script language="javascript"> $(function() { $("input[@name='uName']").focus( function() {if(this.value=='slowx') this.value='';} ).blur( function() {if(this.value=='') this.value='slowx'} ); }); </script>
上一条:
下一条: