• 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"):查找所有按钮

     

  • 相关阅读:
    hdoj-1004-Let the Balloon Rise(水题)
    hdoj-1827-Summer Holiday(scc+缩点)
    poj--3624--Charm Bracelet(动态规划 水题)
    HDU
    HDU
    HDU
    HDU
    【POJ1654】Area【叉积】
    【POJ1654】Area【叉积】
    【SSLOJ1715】计算面积【叉积】
  • 原文地址:https://www.cnblogs.com/2296bbs/p/5360912.html
Copyright © 2020-2023  润新知