Hi.
I have 2 dropdownlists in a web form (Region and Subregion). The 2nd ddl (Subregion) is populated using Ajax when the 1st ddl (Region) value changes. So far so good.
The problem is when the form's submit button is clicked I'm not able to get the 2nd ddl selectedvalue. The only item is has is the one generated by the original markup.
How can I make the ajax generated elements for the 2nd ddl be visible in code behind?
Here's the script:
function updateHTML(json) {
var optHTML = '<option value="" selected="selected">(select...)</option>';
$.each(json, function (key, value) {
optHTML += '<option value="' + key + '" >' + value + '</option>';
});
$("#mainContentPH_ddlSubRegion").html(optHTML);
}
function fillSubRegions() {
var url = "userform.aspx";
var rId = $(this).va ...
Go to the complete details ...