I am trying to use jquery ui’s autocomplete widget to autocomplete each line of a text area. I want the autocomplete to only function on the contents of a single line (whatever line the user’s cursor is on). How could I do this? I am not sure where to even start. It works fine on a single form input.
[quote=“ShinVe, post:1, topic:233750, full:true”]
I am trying to use jquery ui’s autocomplete widget to autocomplete each line of a text area. I want the autocomplete to only function on the contents of a single line (whatever line the user’s cursor is on).[/quote]
That plugin was actually the first one I tried since it is so feature rich. Unfortunately, even after going through its docs, I did not find an example of autocomplete applying to each line of a text area, so I figured the jquery UI would be easier and maybe if I got that right I could just use what I learned there with that more complete yuku-t plugin. Like I said, I am not sure where to start to accomplish this.
The yuku-t plugin autocompletes anytime something comes up that matches a regex, so it can autocomplete multiple times per line - but I want at most once per line.