I'm attempting to modify the demo to suite my needs. However I find it annoying that it doesn't clear the text for the user. I reuse the input field, so when a user clicks on it I'd like it to clear itself.
Also I'm curious if it'd be able to match not just the text field, but the value field. I have different values set for my select options. I'd like the autocomplete to look for both the text and values.
Any guidance, particularly for the reset on focus would be appreciated. I've googled this to death to no avail.
The scenario is I have an HTA that I use to communicate with a database through a telnet like client. It performs macro's and such for me. It's written in VBS to communicate with the client.
I'm attempting to add autocomplete functionality to it using Jquery. The problem however is I have an external file that hold's a list of items that I load into the HTA at startup and turn those into select options.
Based on the one option that is selected I return the value and text, and use that to carry out my macro. I thought about changing my file from just a normal textfile with the values being separated by hyphons into an XML file.
The problem is I'm not quite sure how to pass the selected option back to VBS based on the Jquery autocomplete code I'm seeing, and I've seen a lot at this point.
So is it possible to use Jquery to add a search field that picks a select option that is loaded from an external file and pass it back to VBS?