Hi Mauli,
Below function is used to read the query string from URL and map the value to ddl option
This can be used in document.ready() function like
$(document.ready(function() {
var qs = (function(a) {
if (a == "") return {};
var b = {};
for (var i = 0; i < a.length; ++i)
{
var p=a[i].split('=');
if (p.length != 2) continue;
b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
}
return b;
})(window.location.search.substr(1).split('&'));
if(qs['test'] != undefined){
$('#ddlCountry').val(qs['test']);
}
}));
Hope this helps you a bit.
Regards,
RK