My code works to a point. What I want is that when this if statement is false, the doesn\'t show
doesn\'t show
Use show/hide method as below
$("div").show();//To Show $("div").hide();//To Hide