Problem In Accessing A Variable's Changed Value Outside Of If Block In Javascript Code
$('#submit').click(function(){ var query=getquerystring() ; //get the query string entered by user // get the JSON response from solr server var newquery=q
Solution 1:
The problem is that $.getJson is asynchron.
See this: How to download a text file and store as a string in jQuery
Post a Comment for "Problem In Accessing A Variable's Changed Value Outside Of If Block In Javascript Code"