Hello all!
I'm having an issue with autocomplete that I just can't figure out. I'm almost done with this project (like it should have been released to alpha today) and a last minute change is really throwing me. I am still a newbie to jQuery so I might be making obvious mistakes. Be gentle. ;)
What I need is this:
1) autocomplete to fill in a Project Name input field. (I start typing, it gives me options)
2) once a project name is selected, it calls a function to select all possible sub-projects of that project
3) autocomplete to fill in a Sub Project Name input field. This is all possible sub projects, filtered by that project. fills in the sub project key in a hidden field.
4) Submit then populates the rest of the form with the Sub Project data. (this part I got.)
All of the data exists in the same table, project name, sub project name, sub project key.
This is a jQuery coldfusion application, but if there is a pure jQuery solution I am cool with that too.
I have gone thought a dozen permutations of it. I can get them to work independently, but not together, which is what the requirements need.
I have created a fiddle, this is what I have been recently fiddling with. The function is commented out on the bottom.
http://jsfiddle.net/QgB2N/Thanks!