hi guys, i already have and can make a autocomplete form using jquery plugin..it works fine..but the problem now is, i want the data to be stored in the database now, and not only in a javascript file..is it possible>? could you help me? here is my code..
<script type="text/javascript" src="./lib/jquery.js"></script>
<script type='text/javascript' src='./lib/jquery.bgiframe.min.js'></script>
<script type='text/javascript' src='./lib/jquery.ajaxQueue.js'></script>
<script type='text/javascript' src='./lib/thickbox-compressed.js'></script>
<script type='text/javascript' src='jquery.autocomplete.js'></script>
<script type='text/javascript' src='localdata.js'></script>
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/jquery.autocomplete.css" />
<link rel="stylesheet" type="text/css" href="./css/thickbox.css" />
<script type="text/javascript">
$().ready(function() {
function formatItem(row) {
return row[0] + " (<strong>id: " + row[1] + "</strong>)";
}
function formatResult(row) {
return row[0].replace(/(<.+?>)/gi, '');
}
$("#suggest1").focus().autocomplete(cities);
});
</script>
<form autocomplete="off">
<p>
<label>Single City (local):</label>
<input type="text" id="suggest1" />
</p>
</form>
see attached file for a snapshot..