Joma Alrzini

Joma Alrzini

  • NA
  • 61
  • 31k

how to put the selected value of drop down to textbox

Jul 3 2016 9:39 PM
I need to select the value of dropdownlist and put it on textbox I tried theses but not working 
 
$('#<%= DDL_ID.ClientID %>').change(function() {     $('#<%= TextBoxID.ClientID %>').val($(this).val()); });
 
 protected void DDL_SelectedIndexChanged(object sender, EventArgs e) { var selectedValue = ((DropDownList)sender).SelectedValue; TextBox1.Text = selectedValue; } 

Answers (3)