This question already has an answer here:
- Targeting a certain class in jQuery 1 answer
so here is very simple code that I think is suppose to work"
if ($("#mylogo").hasClass(".logo")) {
$("#mylogo").html("test");
}
I double checked if .html page indeed has this H1 with #mylogo and .logo class, so that is not a problem....
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire