<script>
function country_state(sid) {
var id = sid;
console.log("Function called " + sid + " " + $("#state").val());
$.get("country.php?id=" + id, function(d) {
console.log("Function returned " + d);
alert("Returned: " + d);
$(".media").html(d);
});
}
</script>
In this code the 1st error log is coming but not the 2nd.It seems the GET is not returning any thing although as per firebug the GET request is being fire with the blank response.please help.
You could try the error callback, look at the documentation:
http://api.jquery.com/jQuery.get/