Can anyone please tell me about –
How can I handle Html.DropDown control’s events in MVC View?
Can I handle it using scripts?
And how to know about the selected item?
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.
If you use jquery you can handle events something like this:
This creates a handler for the change event. If you want to bind a handler to some other event you just replace change with whatever event you want to handle.
The same goes for any html element.