I have a page and I want to be able to have a javascript on it that will let me change the class of a tag. For example:So when Show() is ran the class of the ItemA should be changed to "" and when Hide() is ran it should chnage the class to "HiddenItem".Code:<A HREF="Show(ItemA);">Show Item A.</A><BR /> <A HREF="Hide(ItemA);">Hide Item A.</A><BR /> <P id="ItemA" class="HiddenItem">This is Item A.</P>
I have used to have some code that did this but I can't manage to find it. BTW I'm no good at Javascript as well
.
Thanx




. BTW I'm no good at Javascript as well
)
Reply With Quote