Hi,
var htm = $.ajax({
type: "GET",
url: "./viewforms",
async: false
}).responseText;
var myObject = eval('(' + htm + ')');
alert(myObject.attributes[0]["type"]);
$("#updateDiv1").html(myObject.attributes[0]["type"]);
alert($("#updateDiv1").text());
l=$("#updateDiv1").text();
alert(l);
if(l =="String")
{
alert("if...");
}
In the above code,i m retriving values from database..I m getting correct answer..Now i m comparing my database returned value with the String ..ITs retuning String but dont know why its not entering the IF block..please sugggest me.....