clone.html 1000 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Clone DateBox - 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>Clone DateBox</h2>
  14. <p>Click the 'Clone' button to clone datebox components from the exiting datebox.</p>
  15. <div style="margin:20px 0;">
  16. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="cloneDatebox()">Clone</a>
  17. </div>
  18. <input id="dt" class="easyui-datebox"></input>
  19. <div id="cc" style="margin-top:10px"></div>
  20. <script type="text/javascript">
  21. function cloneDatebox(){
  22. var dt = $('<input>').appendTo('#cc');
  23. dt.datebox('cloneFrom', '#dt');
  24. }
  25. </script>
  26. </body>
  27. </html>