2012-11-11 03:44:42 +00:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<title>DevBridge Autocomplete Demo</title>
|
|
|
|
|
<link href="content/styles.css" rel="stylesheet" />
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<h1>Ajax Autocomplete Demo</h1>
|
2012-12-18 22:07:02 +00:00
|
|
|
|
|
|
|
|
|
<h2>Ajax Lookup</h2>
|
|
|
|
|
<p>Type country name in english:</p>
|
2013-06-04 23:12:01 +00:00
|
|
|
|
<div style="position: relative; height: 80px;">
|
|
|
|
|
<input type="text" name="country" id="autocomplete-ajax" style="position: absolute; z-index: 2; background: transparent;"/>
|
|
|
|
|
<input type="text" name="country" id="autocomplete-ajax-x" disabled="disabled" style="color: #CCC; position: absolute; background: transparent; z-index: 1;"/>
|
2012-12-18 22:07:02 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div id="selction-ajax"></div>
|
|
|
|
|
|
2014-09-22 03:14:17 +00:00
|
|
|
|
<h2>Local Lookup and Grouping</h2>
|
|
|
|
|
<p>Type NHL or NBA team name:</p>
|
2012-11-11 03:44:42 +00:00
|
|
|
|
<div>
|
2012-12-18 22:07:02 +00:00
|
|
|
|
<input type="text" name="country" id="autocomplete"/>
|
2012-11-11 03:44:42 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div id="selection"></div>
|
2013-01-20 21:17:04 +00:00
|
|
|
|
|
|
|
|
|
<h2>Custom Lookup Container</h2>
|
|
|
|
|
<p>Type country name in english:</p>
|
|
|
|
|
<div>
|
|
|
|
|
<input type="text" name="country" id="autocomplete-custom-append" style="float: left;"/>
|
|
|
|
|
<div id="suggestions-container" style="position: relative; float: left; width: 400px; margin: 10px;"></div>
|
|
|
|
|
</div>
|
2012-11-11 03:44:42 +00:00
|
|
|
|
</div>
|
2013-04-26 19:49:41 +00:00
|
|
|
|
|
|
|
|
|
<div style="width: 50%; margin: 0 auto; clear: both;">
|
|
|
|
|
<h2>Dynamic Width</h2>
|
|
|
|
|
<p>Type country name in english:</p>
|
|
|
|
|
<div>
|
|
|
|
|
<input type="text" name="country" id="autocomplete-dynamic" style="width: 100%; border-width: 5px;"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-11-11 03:44:42 +00:00
|
|
|
|
|
2023-10-11 00:47:10 +00:00
|
|
|
|
<script type="text/javascript" src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="https://unpkg.com/jquery-mockjax@2.6.0/dist/jquery.mockjax.js"></script>
|
2012-11-11 03:44:42 +00:00
|
|
|
|
<script type="text/javascript" src="src/jquery.autocomplete.js"></script>
|
2013-11-24 03:43:40 +00:00
|
|
|
|
<script type="text/javascript" src="scripts/countries.js"></script>
|
2012-11-11 03:44:42 +00:00
|
|
|
|
<script type="text/javascript" src="scripts/demo.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|