I am using a struts2 autocompleter tag. Now i want to invoke a javascript function when user selects some value in the drop down. I tried onChange, onSelect, onClick event but nothing works 🙁 Please tell me your suggestions on this.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d use Dojo “topics”.
When a selection is made the
valueNotifyTopicsare fired. See the autocompleter docs for details. There is an example there, shown below:Note that the Dojo tags have been deprecated since Struts 2.1 and will be archived in the next release.