[thelist] DOM - change an element's class
Adriano Castro
ad at netvisao.pt
Thu Apr 1 06:07:17 CST 2004
Works perfectly!
This is what I call the "don't give up kinda thread". U googled it and
couldn't find it, u tried and couldn't do it, u googled some more and
still no answer, u asked for help at thelist and then u googled some
more in a desperate hope the answer was out there: u find the answer
and share it with the rest of the list.
Thanks for being here to listen to me! :D
AD
> Nevermind that...
>
> I got it!
>
> function change(id, newClass) {
> identity=document.getElementById(id);
> identity.className=newClass;
> }
>
> Nevermind that...
>
> I got it!
>
> function change(id, newClass) {
> identity=document.getElementById(id);
> identity.className=newClass;
> }
>
> That oughta work!
> Let me give it a try...
More information about the thelist
mailing list