I’d like to have JSP an auto filter for the values on a element. Let’s say I have loaded to the JSP a list of options like this:
- AAAA
- AAAB
- AABA
- AABB
- ABBA
- ABBB
What I want is a way to automatically filter the values whenever I type “AA” (which should display items: AAAA, AAAB, AABA and AABB) or “AB” (which should display only items: ABBA and ABBB).
I know it’s quite easy on JSF, but is this feasible on JSP?
Thanks in advance,
gtludwig
That’s a JavaScript problem, and doesn’t have much to do with JSPs. You could use jQueryUI, or Dojo, or Twitter Bootstrap, or ExtJS, or any other JavaScript framework that provides such a component.