<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src='../jquery.js'></script>
<style>
    .hide{display:none}
    .test{background:green}
</style>
</head>
<body>
        <div id='test'>ttttt</div>
        <input type='text' id='adress' value='请输入' />
    <script>
    $(function(){
        $('#adress').focus(function(){
            var text=$(this).val();
            if(text=='请输入'){
                $(this).val('');
            }
        });
        $('#adress').blur(function(){
            var text=$(this).val();
            if(text==''){
                $(this).val('请输入');
            }
        });
    });
    </script>
    
</body>
</html>

最新文章

  1. [POJ&amp;HDU]杂题记录
  2. 记一个简单的sql查询
  3. MVC 理解小谈
  4. appframework(jqmobi) 3.0 设置
  5. Git &amp; Github 一页简明笔记
  6. javaScript没有块级作用域
  7. 作为一个web开发人员,哪些技术细节是在发布站点前你需要考虑到的
  8. LA 4123 (计数 递推) Glenbow Museum
  9. iOS之隐藏状态栏
  10. lua协程实现简析
  11. 英语学习App演示
  12. Android开发艺术探索》读书笔记 (12) 第12章 Bitmap的加载和Cache
  13. H5与CS3权威下.18 and 19 选择器(1)
  14. MVVM 模版里的控件怎样触发命令
  15. python 中一些关键字的区别
  16. ASp.Net Mvc Core 重定向
  17. 3038 3n+1问题
  18. .NET Core错误:The specified framework &#39;Microsoft.NETCore.App&#39;, version &#39;1.0.0-rc2-3002702&#39; was not found.
  19. python-数据分析与展示(Numpy、matplotlib、pandas)---1
  20. hdu some problems in Multi-University Training Contest

热门文章

  1. 依赖注入Unity框架
  2. 杭电 2817 A sequence of numbers【快速幂取模】
  3. GCD与dispatch_group总结
  4. ubantu上搭建hive环境
  5. create raid5
  6. 浅谈自底向上的Shell脚本编程及效率优化
  7. BZOJ 5180 [Baltic2016]Cities(斯坦纳树)
  8. luogu 自适应Simpson2
  9. python的基础及练习
  10. 用 JavaScript 实现简单拼图游戏