Menu
Hi
I’m currently trying to change a css property of a p tag with the class “help”. This is my short and simple code I tried with:
[CODE] var pTags = document.getElementsByTagName(“p”);
pTags.style.width = “280px”;
However, FireBug gives the error “pTags has no properties”. I’m not sure what is wrong, though I can guess. Don’t I need a reference to the class, rather than the p itself? How do I go about doing that?
Would appreciate any help! ?