hello all i have this code
var temp; if(method==1) temp = $(\"#Words\").val(); //get the words from textbox else{ $.getJSON(\"http://localhost/mi
you are providing the $.getJSON() function with a callback function. That doesn't get executed until the request is complete.
$.getJSON()