zoukankan      html  css  js  c++  java
  • Jquery学习(表单-Button)-----jQuery1.4.2

     1 <html>
     2 <head>
     3 <base href="<%=basePath%>">
     4 
     5 <title>My JSP 'jquery.jsp' starting page</title>
     6 
     7 <meta http-equiv="pragma" content="no-cache">
     8 <meta http-equiv="cache-control" content="no-cache">
     9 <meta http-equiv="expires" content="0">
    10 <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    11 <meta http-equiv="description" content="This is my page">
    12 <script type="text/javascript" src="/common/easyui/jquery.min.js"></script>
    13 <script type="text/javascript">
    14     $(document).ready(function(){
    15     $(":button").css("color","blue");
    16     });
    17 </script>
    18 
    19 </head>
    20 <body>
    21 <form>
    22   <input type="text" />
    23   <input type="checkbox" />
    24   <input type="radio" />
    25   <input type="image" />
    26   <input type="file" />
    27   <input type="submit" />
    28   <input type="reset" />
    29   <input type="password" />
    30   <input type="button" />
    31   <select><option/></select>
    32   <textarea></textarea>
    33   <button>MyButton</button>
    34 </form> 
    35 
    36 </body>
    37 </html>

                                    效果图1-1

    重点解释:

    $(":button"):查找所有按钮

     

  • 相关阅读:
    Java文件流应用:复制文件
    Java IO流之文件流
    初识Java-IO流
    Java集合之Properties
    Java之FilenameFilter接口
    Java之File类
    Java内部类
    Java常用类之要点总结
    Java异常类(Throwable)
    php分布式缓存系统 Memcached 入门
  • 原文地址:https://www.cnblogs.com/2296bbs/p/5360912.html
Copyright © 2011-2022 走看看