i’m having a widget with a search-textbox. when pressing enter in it, search starts.
i now want to trigger that enter key by code. in other words, i want to send the enter-keystroke to the textbox.
how does it work?
thx
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.
I would advise that you trigger the search rather than triggering the keystroke.
Obviously, that can be done just by calling the client-side search code or, if searching takes place server-side, submitting the form with the correct arguments/values.