Closed Thread Icon

Preserved Topic: change of class "on the fly" (Page 1 of 1) 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; (Page 1 of 1)" rel="nofollow" >Preserved Topic: change of class &quot;on the fly&quot; <span class="small">(Page 1 of 1)</span>\

 
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