I am trying to fetch the current value on click. But it's returning the first element of the class only.
$(".list-country").on("click",function(){ var country = $(".list-country span").html(); loadState("stateData", country); })