Simple addClass not adding class

have this bit of code

$(".BusinessCard").append("<div><h2>booo</h2></div>").addcClass("boo");

and also tried

$(".BusinessCard").append("<div><h2>booo</h2></div>").attr("class").addcClass("boo");

Although it was my impression that addClass should have done the trick.
On my page I see the new div w/the boo. But no class. What’s up w/that?

addcClass(“boo”);

arggg &%$*# typos.
Thx

Also, you can just do addClass(). No need for the attr().

Yeah that was my impression as well. Of course that would not work w/ addcClass() either!
oh well, face palm.
Thx

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.