nemnickereria
New Member
i have drop down list inside Partial view in asp.net MVC page. I am showing that partial view into the Modal Popup. I am binding values from data base to dropdown listmy problem is when i bind values to Dropdown List it binds twice?can any one tell me why this happensany help would be appreciated?? \[code\]<select id="EntityType"></select>\[/code\]\[code\]function Test() { $.ajax({ url: '/../MyFunction/', type: 'POST', dataType: 'json', success: function (data) { var options = $('#ddlcountry); $.each(data, function() { options.append($('<option/>').val(this.SHId).text(this.Name)); }); } // ajax callback }); // ajax call}\[/code\]This is the output I am getting\[quote\] value1
value2
value3
value1
value2
value3 \[/quote\]
value2
value3
value1
value2
value3 \[/quote\]