asp.net mvc - how do you add an event to a dropdown list added in this way @Html.DropDownList("List")? -


how add 1 or more events dropdownlist added in way

@html.dropdownlist("list") ?

if comfortable using jquery:, try this:

     $("#dropdownlistid").change(function () {         var selectedvalue = $(this).val();         //do whatever want on selection changes here      }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -