index.htm 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>DevBridge Autocomplete Demo</title>
  5. <link href="content/styles.css" rel="stylesheet" />
  6. </head>
  7. <body>
  8. <div class="container">
  9. <h1>Ajax Autocomplete Demo</h1>
  10. <h2>Ajax Lookup</h2>
  11. <p>Type country name in english:</p>
  12. <div style="position: relative; height: 80px;">
  13. <input type="text" name="country" id="autocomplete-ajax" style="position: absolute; z-index: 2; background: transparent;"/>
  14. <input type="text" name="country" id="autocomplete-ajax-x" disabled="disabled" style="color: #CCC; position: absolute; background: transparent; z-index: 1;"/>
  15. </div>
  16. <div id="selction-ajax"></div>
  17. <h2>Local Lookup and Grouping</h2>
  18. <p>Type NHL or NBA team name:</p>
  19. <div>
  20. <input type="text" name="country" id="autocomplete"/>
  21. </div>
  22. <div id="selection"></div>
  23. <h2>Custom Lookup Container</h2>
  24. <p>Type country name in english:</p>
  25. <div>
  26. <input type="text" name="country" id="autocomplete-custom-append" style="float: left;"/>
  27. <div id="suggestions-container" style="position: relative; float: left; width: 400px; margin: 10px;"></div>
  28. </div>
  29. </div>
  30. <div style="width: 50%; margin: 0 auto; clear: both;">
  31. <h2>Dynamic Width</h2>
  32. <p>Type country name in english:</p>
  33. <div>
  34. <input type="text" name="country" id="autocomplete-dynamic" style="width: 100%; border-width: 5px;"/>
  35. </div>
  36. </div>
  37. <script type="text/javascript" src="scripts/jquery-1.8.2.min.js"></script>
  38. <script type="text/javascript" src="scripts/jquery.mockjax.js"></script>
  39. <script type="text/javascript" src="src/jquery.autocomplete.js"></script>
  40. <script type="text/javascript" src="scripts/countries.js"></script>
  41. <script type="text/javascript" src="scripts/demo.js"></script>
  42. </body>
  43. </html>