navigation.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Navigate ComboBox - 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>Navigate ComboBox</h2>
  14. <p>Navigate through combobox items width keyboard to select an item.</p>
  15. <div style="margin:20px 0;">
  16. <input type="checkbox" checked onchange="$('#cc').combobox({selectOnNavigation:$(this).is(':checked')})">
  17. <span>SelectOnNavigation</span>
  18. </div>
  19. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  20. <div style="margin-bottom:20px">
  21. <select id="cc" class="easyui-combobox" name="state" label="State:" labelPosition="top" style="width:100%;">
  22. <option value="AL">Alabama</option>
  23. <option value="AK">Alaska</option>
  24. <option value="AZ">Arizona</option>
  25. <option value="AR">Arkansas</option>
  26. <option value="CA">California</option>
  27. <option value="CO">Colorado</option>
  28. <option value="CT">Connecticut</option>
  29. <option value="DE">Delaware</option>
  30. <option value="FL">Florida</option>
  31. <option value="GA">Georgia</option>
  32. <option value="HI">Hawaii</option>
  33. <option value="ID">Idaho</option>
  34. <option value="IL">Illinois</option>
  35. <option value="IN">Indiana</option>
  36. <option value="IA">Iowa</option>
  37. <option value="KS">Kansas</option>
  38. <option value="KY">Kentucky</option>
  39. <option value="LA">Louisiana</option>
  40. <option value="ME">Maine</option>
  41. <option value="MD">Maryland</option>
  42. <option value="MA">Massachusetts</option>
  43. <option value="MI">Michigan</option>
  44. <option value="MN">Minnesota</option>
  45. <option value="MS">Mississippi</option>
  46. <option value="MO">Missouri</option>
  47. <option value="MT">Montana</option>
  48. <option value="NE">Nebraska</option>
  49. <option value="NV">Nevada</option>
  50. <option value="NH">New Hampshire</option>
  51. <option value="NJ">New Jersey</option>
  52. <option value="NM">New Mexico</option>
  53. <option value="NY">New York</option>
  54. <option value="NC">North Carolina</option>
  55. <option value="ND">North Dakota</option>
  56. <option value="OK">Oklahoma</option>
  57. <option value="OR">Oregon</option>
  58. <option value="PA">Pennsylvania</option>
  59. <option value="RI">Rhode Island</option>
  60. <option value="SC">South Carolina</option>
  61. <option value="SD">South Dakota</option>
  62. <option value="TN">Tennessee</option>
  63. <option value="TX">Texas</option>
  64. <option value="UT">Utah</option>
  65. <option value="VT">Vermont</option>
  66. <option value="VA">Virginia</option>
  67. <option value="WA">Washington</option>
  68. <option value="WV">West Virginia</option>
  69. <option value="WI">Wisconsin</option>
  70. <option value="WY">Wyoming</option>
  71. </select>
  72. </div>
  73. </div>
  74. </body>
  75. </html>