3ec9cbd52fad17af54b8950e0118d941d6e3e26a.svn-base 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <select id="cc" class="easyui-combobox" name="state" style="width:200px;">
  20. <option value="AL">Alabama</option>
  21. <option value="AK">Alaska</option>
  22. <option value="AZ">Arizona</option>
  23. <option value="AR">Arkansas</option>
  24. <option value="CA">California</option>
  25. <option value="CO">Colorado</option>
  26. <option value="CT">Connecticut</option>
  27. <option value="DE">Delaware</option>
  28. <option value="FL">Florida</option>
  29. <option value="GA">Georgia</option>
  30. <option value="HI">Hawaii</option>
  31. <option value="ID">Idaho</option>
  32. <option value="IL">Illinois</option>
  33. <option value="IN">Indiana</option>
  34. <option value="IA">Iowa</option>
  35. <option value="KS">Kansas</option>
  36. <option value="KY">Kentucky</option>
  37. <option value="LA">Louisiana</option>
  38. <option value="ME">Maine</option>
  39. <option value="MD">Maryland</option>
  40. <option value="MA">Massachusetts</option>
  41. <option value="MI">Michigan</option>
  42. <option value="MN">Minnesota</option>
  43. <option value="MS">Mississippi</option>
  44. <option value="MO">Missouri</option>
  45. <option value="MT">Montana</option>
  46. <option value="NE">Nebraska</option>
  47. <option value="NV">Nevada</option>
  48. <option value="NH">New Hampshire</option>
  49. <option value="NJ">New Jersey</option>
  50. <option value="NM">New Mexico</option>
  51. <option value="NY">New York</option>
  52. <option value="NC">North Carolina</option>
  53. <option value="ND">North Dakota</option>
  54. <option value="OK">Oklahoma</option>
  55. <option value="OR">Oregon</option>
  56. <option value="PA">Pennsylvania</option>
  57. <option value="RI">Rhode Island</option>
  58. <option value="SC">South Carolina</option>
  59. <option value="SD">South Dakota</option>
  60. <option value="TN">Tennessee</option>
  61. <option value="TX">Texas</option>
  62. <option value="UT">Utah</option>
  63. <option value="VT">Vermont</option>
  64. <option value="VA">Virginia</option>
  65. <option value="WA">Washington</option>
  66. <option value="WV">West Virginia</option>
  67. <option value="WI">Wisconsin</option>
  68. <option value="WY">Wyoming</option>
  69. </select>
  70. </body>
  71. </html>