basic.html 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic MaskedBox - 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>Basic MaskedBox</h2>
  14. <p>The maskedbox enforces its structure as the user types.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" title="Basic MaskedBox" style="width:100%;max-width:400px;padding:30px 60px;">
  17. <div style="margin-bottom:20px">
  18. <input class="easyui-maskedbox" mask="(999) 999-9999" label="Phone Number:" labelPosition="top" style="width:100%">
  19. </div>
  20. <div style="margin-bottom:20px">
  21. <input class="easyui-maskedbox" mask="9999 9999 9999 9999" label="Credit Card:" labelPosition="top" style="width:100%">
  22. </div>
  23. <div style="margin-bottom:20px">
  24. <input class="easyui-maskedbox" mask="99%" label="Percent:" labelPosition="top" style="width:100%">
  25. </div>
  26. </div>
  27. </body>
  28. </html>