I want to be able to pick string value from textbox and return id value that will be send with form.
for example:
I have
//.........
<input type="text" id="id_" value="" />
<script type="text/javascript">
var arr = new Array();
arr.push(new Array("xx", 1);
arr.push(new Array("yy", 2);
arr.push(new Array("zz", 3);
var obj = new autosuggest("id_", arr);
</script>
//.........
and I want to see the "xx", "yy", "zz" when I use autosuggest textbox and after I pick for example "xx" I want the id_ from <input> field to have 1 value that can be send with <form>