Click to See Complete Forum and Search --> : Okay, is it possible to...
Greelmo
05-16-2003, 06:02 PM
Is it possible to control the text out next to a radio button in a JavaScript funtion. More specifically, is it possible to make it so that you can change the type of font it uses? I have a preference thing on my site, and it controls the font of the entire body. However, i can't get it to affect the text next to radio buttons. Any suggestions?
khalidali63
05-16-2003, 06:08 PM
get reference to the element and then use CSS properties
element.style.fontSize="XXXXpt";
Greelmo
05-16-2003, 08:42 PM
could you possibly write out a sample code of a document that changes the fontFamily when a button is clicked. I use make, so use "Kidprint" as the font value and it will work for me. If not, it is okay, and thanks for the help. I just don't understand CSS properties.