Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
change the label text when I click the dropdown list item
Posted
Comments
Satish kumar Vadlavalli 17-Mar-15 5:12am    
It should be more specific . .
[no name] 17-Mar-15 6:36am    
Use SelectedIndexChanged

hi
//Using jquery plugin

JavaScript
$(document).ready(
  function() {
    $('#DropdownListID').change(
      function(){

        $('#LabelID').text($('option:selected',this).text());
      }
      );
  }
  );
 
Share this answer
 
v2
Hi
You can use SelectedIndexChanged event of drop-down control to do your stuff.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900