Hello,
Hello, I want to assign value to global variable in javascript from jquery ajax function.
var trueFalse;
here i need the value of trueFalse from success function.
$.ajax({
type: "GEt",
url: "url",
data: "text=" + $("#text").val(),
success: function(msg)
{
if(msg.match(/OK/) != null)
{
trueFalse = "true";
}
else
{
trueFalse = "false";
}
}
});
return trueFalse;
thanks
v.srinath