<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>jQuery Autocomplete Plugin</title>
<script type="text/javascript" src="includes/jquery-1.6.1.min.js"></script>
<script type='text/javascript' src='includes/jquery.bgiframe.min.js'></script>
<script type='text/javascript' src='includes/jquery.ajaxQueue.js'></script>
<script type='text/javascript' src='includes/thickbox-compressed.js'></script>
<script type='text/javascript' src='includes/jquery.autocomplete.js'></script>
<script type='text/javascript' src='includes/localdata.js'></script>
<link rel="stylesheet" type="text/css" href="includes/main.css" />
<link rel="stylesheet" type="text/css" href="includes/jquery.autocomplete.css" />
<link rel="stylesheet" type="text/css" href="includes/thickbox.css" />
<script type="text/javascript">
$().ready(function() {
$("#singleBirdRemote").autocomplete("autocompletequery.jsp", {
width: 260,
selectFirst: false
}
);
// $(":text, textarea").result(findValueCallback).next().click(function() {
// $(this).prev().search();
// });
$("#singleBirdRemote").result(function(event, data, formatted) {
if (data)
$(this).parent().next().find("input").val(data[1]);
});
});
</script>
</head>
<body>
<form autocomplete="off">
<p>
<input type="text" id="singleBirdRemote" />
<input type="button" value="Get Value" />
</p>
</form>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<div id="ListOfLinks" >
This is a test
</div>
<br/>
<br/>
<h3>Result:</h3> <ol id="result"></ol>
</body>
</html>
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.