$("#thinker01").click( function() {
$("#info").html("323");
if ($("#info").html == "323"){ //doesn't work - how to say this?
$("#imgOk").fadeIn();
}
});
Without if – the fourth line works.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Notice the
()around the html function which is what is actually invoking it. Otherwise you are using it as a property and there’s no such property.