<select id="countrylist">
<option>Single</option>
<option>Single2</option>
</select>
$(document).ready(function(){
$('#countrylist').change(function(e){
$this = $(e.target);
$.ajax({
type: "POST",
url: "scriptname.asp",
data: { country: $this.val() },
success:function(data){
$('#stateBoxHook').html(data);
}
});
});
})
or
< script >
$(document).ready(function()
{
$("#ddlEmployee").on("change", function()
{
$.ajax(
{
url: '/Home/GetEmployeeRecord?EmployeeId=' + $(this).attr("value"),
type: 'GET',
data: "",
contentType: 'application/json; charset=utf-8',
success: function(data)
{
$("#partialDiv").html(data);
},
error: function()
{
alert("error");
}
});
});
}); < /script>