manjula d

manjula d

  • NA
  • 172
  • 137.2k

in page using multiple times of usercontrol dropdownlist

Nov 8 2014 6:12 AM
Dear Friends,
am using UserControl(.ascx) 6 Times in a single page(.aspx)
my problem is:  in usercontrol have dropdownlist
how to get 6  dropdowns selected value 
am binding dynamically(DB) from dropdown values 
i wrote like:
$(document).ready(function(){ 
$('#ddlCountry').change(function () {

$('#hidCuntry1').val($("select[name='#ctl00$ContentPlaceHolder1$using1$ddlCountry']").val());
$('#hidCuntry11').val($("select[name='#ctl00$ContentPlaceHolder1$using2$ddlCountry']").val());
$('#hidCuntry111').val($("select[name='#ctl00$ContentPlaceHolder1$using3$ddlCountry']").val());
$('#hidCuntry1111').val($("select[name='#ctl00$ContentPlaceHolder1$using4$ddlCountry']").val());
$('#hidCuntry11111').val($("select[name='#ctl00$ContentPlaceHolder1$using5$ddlCountry']").val());
$('#hidCuntry111111').val($("select[name='#ctl00$ContentPlaceHolder1$using6$ddlCountry']").val());
});
}); 
if U Known Pls Help Me 
 

Answers (3)