﻿var options = { script: "/autocomplete.aspx?json=true&", varname: "input", json: true, callback: function(obj) { document.getElementById('testid').value = obj.id; } }; var as_json = new AutoSuggest('testinput', options); var options_xml = { script: "test.php?", varname: "input" }; var as_xml = new AutoSuggest('testinput_xml', options_xml);