If I use a single statement, then it works well. I mean if I use multiple $.post, as shown below, it fills both the DropDowns with the data of the second $.post. Why? The .php file contains code to dynamically fill DropDown.
$.post("../Lib/filldropdown.php",
{DropDownControlName: "inMemberOf", SqlQuery: "SELECT * FROM electioncategorymaster" },
function(data){
$('#divMemberOf').html(data);
});
$.post("../Lib/filldropdown.php",
{DropDownControlName: "inWard", SqlQuery: "SELECT * FROM wardconstituencymaster"},
function(data){
$('#divWard').html(data);
});
Kindly ignore the Sql Injection issue above.