5ea223d04b14c2e7fcf2a63d80576883960994d0.svn-base 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic Form - 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 Form</h2>
  14. <p>Fill the form and submit it.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" title="New Topic" style="width:400px">
  17. <div style="padding:10px 60px 20px 60px">
  18. <form id="ff" method="post">
  19. <table cellpadding="5">
  20. <tr>
  21. <td>Name:</td>
  22. <td><input class="easyui-validatebox textbox" type="text" name="name" data-options="required:true"></input></td>
  23. </tr>
  24. <tr>
  25. <td>Email:</td>
  26. <td><input class="easyui-validatebox textbox" type="text" name="email" data-options="required:true,validType:'email'"></input></td>
  27. </tr>
  28. <tr>
  29. <td>Subject:</td>
  30. <td><input class="easyui-validatebox textbox" type="text" name="subject" data-options="required:true"></input></td>
  31. </tr>
  32. <tr>
  33. <td>Message:</td>
  34. <td><input class="textbox" name="message"></input></td>
  35. </tr>
  36. <tr>
  37. <td>Language:</td>
  38. <td>
  39. <select class="easyui-combobox" name="language"><option value="ar">Arabic</option><option value="bg">Bulgarian</option><option value="ca">Catalan</option><option value="zh-cht">Chinese Traditional</option><option value="cs">Czech</option><option value="da">Danish</option><option value="nl">Dutch</option><option value="en" selected="selected">English</option><option value="et">Estonian</option><option value="fi">Finnish</option><option value="fr">French</option><option value="de">German</option><option value="el">Greek</option><option value="ht">Haitian Creole</option><option value="he">Hebrew</option><option value="hi">Hindi</option><option value="mww">Hmong Daw</option><option value="hu">Hungarian</option><option value="id">Indonesian</option><option value="it">Italian</option><option value="ja">Japanese</option><option value="ko">Korean</option><option value="lv">Latvian</option><option value="lt">Lithuanian</option><option value="no">Norwegian</option><option value="fa">Persian</option><option value="pl">Polish</option><option value="pt">Portuguese</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="sk">Slovak</option><option value="sl">Slovenian</option><option value="es">Spanish</option><option value="sv">Swedish</option><option value="th">Thai</option><option value="tr">Turkish</option><option value="uk">Ukrainian</option><option value="vi">Vietnamese</option></select>
  40. </td>
  41. </tr>
  42. </table>
  43. </form>
  44. <div style="text-align:center;padding:5px">
  45. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">Submit</a>
  46. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">Clear</a>
  47. </div>
  48. </div>
  49. </div>
  50. <style scoped="scoped">
  51. .textbox{
  52. height:20px;
  53. margin:0;
  54. padding:0 2px;
  55. box-sizing:content-box;
  56. }
  57. </style>
  58. <script>
  59. function submitForm(){
  60. $('#ff').form('submit');
  61. }
  62. function clearForm(){
  63. $('#ff').form('clear');
  64. }
  65. </script>
  66. </body>
  67. </html>