Closed Thread Icon

Preserved Topic: change of class "on the fly" Pages that link to <a href="https://ozoneasylum.com/backlink?for=18323" title="Pages that link to Preserved Topic: change of class &amp;quot;on the fly&amp;quot;" rel="nofollow" >Preserved Topic: change of class &quot;on the fly&quot;\

 
Author Thread
vto
Obsessive-Compulsive (I) Inmate

From: Godella, Valencia, Spain
Insane since: Feb 2002

posted posted 08-15-2002 21:28

Hi all,

Those someone konw how to change the class of, perhaps, a div on the fly. Something like:

document.getElementById("mydiv").style.class = "estilo1";

I had try it with .class and .className but....

Thanks and best regards,

vto.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 08-15-2002 21:37

document.getElementById("mydiv").className = "estilo1"; // <-- no ".style" part


vto
Obsessive-Compulsive (I) Inmate

From: Godella, Valencia, Spain
Insane since: Feb 2002

posted posted 08-15-2002 21:54

thanks, thanks, thanks....



« BackwardsOnwards »

Show Forum Drop Down Menu