category.html 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Search Category - 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>Search Category</h2>
  14. <p>Select a category and click search button or press enter key in input box to do searching.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
  17. <input class="easyui-searchbox" data-options="prompt:'Please Input Value',menu:'#mm',searcher:doSearch" style="width:100%">
  18. </div>
  19. <div id="mm">
  20. <div data-options="name:'all',iconCls:'icon-ok'">All News</div>
  21. <div data-options="name:'sports'">Sports News</div>
  22. </div>
  23. <script>
  24. function doSearch(value,name){
  25. alert('You input: ' + value+'('+name+')');
  26. }
  27. </script>
  28. </body>
  29. </html>