I have a very large number of input fields. I want to implement a suggestBox for all of them. But it will be a lot of code on jsp if I write a suggestBox for each of them using the "for" attribute. So is there anyway to have a single suggestBox for all of them. Or if there is anyway to change the "for" attribute of suggestBox by clicking on an input field. BTW the list returned is of strings in each case.