the if part is not working
var name = $("#name");
$.ajax({
type: "get",
url: "test.jsp",
data: "name="+name,
success: function(msg) {
if( msg == "available" )
{
// you conditional code here
// i want to display a image here with id nameInfo
$('#result').hide();
$("#result").html(msg).fadeIn("slow");
}
}
});
1 Answer