dynamicdata.html 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Load Dynamic ComboBox Data - 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>Load Dynamic ComboBox Data</h2>
  14. <p>Click the button below to load data.</p>
  15. <div style="margin:20px 0;">
  16. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#language').combobox('reload', 'combobox_data1.json')">LoadData</a>
  17. </div>
  18. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  19. <div style="margin-bottom:20px">
  20. <input id="language" class="easyui-combobox" name="language" style="width:100%;" data-options="
  21. valueField: 'id',
  22. textField: 'text',
  23. label: 'Language:',
  24. labelPosition: 'top'
  25. ">
  26. </div>
  27. </div>
  28. </body>
  29. </html>