group.html 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Group 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>Group ComboBox</h2>
  14. <p>This example shows how to display combobox items in groups.</p>
  15. <div style="margin:20px 0">
  16. <input type="checkbox" onchange="$('#cc').combobox({groupPosition:$(this).is(':checked')?'sticky':'static'})">
  17. <span>Sticky Group</span>
  18. </div>
  19. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  20. <div style="margin-bottom:20px">
  21. <input id="cc" class="easyui-combobox" name="browser" style="width:100%;" data-options="
  22. url: 'combobox_data2.json',
  23. method: 'get',
  24. valueField:'value',
  25. textField:'text',
  26. groupField:'group',
  27. label: 'Browser:',
  28. labelPosition: 'top'
  29. ">
  30. </div>
  31. </div>
  32. </body>
  33. </html>