action.html 948 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>SwitchButton Actions - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>SwitchButton Actions</h2>
  14. <p>Click the buttons below to perform actions.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div style="margin:20px 0;">
  17. <a href="#" class="easyui-linkbutton" onclick="$('#sb').switchbutton('disable')">Disable</a>
  18. <a href="#" class="easyui-linkbutton" onclick="$('#sb').switchbutton('enable')">Enable</a>
  19. </div>
  20. <input id="sb" class="easyui-switchbutton" checked style="width:100px;height:30px">
  21. </body>
  22. </html>