|
Answer» HI! I'm new here, but not to HTML creation. Still, I have a question about RADIO buttons in forms. I am an English teacher working inside a large Japanese electronics company. Mostly the engineers here consult with me about their English DOCUMENT writing. One of my on-going PROJECTS is to create a weekly e-mail quiz (usually questions about Eng vocab.). This is quite easy to produce using HTML forms. Now that I have a couple of basic templates CREATED for this, I'm looking for ways to add some sparkle and glitter to the weekly quiz. So... Using input type=radio to create multiple-chose questions looks and works very good. What I would like to do is have the answer text associated with a radio BUTTON change to bold when it's radio button is selected. Or something else... anything to make that selection stand out, besides just the radio button "dot". Hopefully, something easy, and not pages of java script. :-/ But in any case, all advice and suggestions are welcome. Cheers from Japan! DeeJavascript is necessary to do this, I'm afraid. How's your coding? Something like document.getElementById('label1').style.fontWeight = 'bold' on the onClick for the radio button would do the job.Thanks Rob. I'll play with that and see if I can make it work.
DeeNo problem. Let us know if you get stuck.Hey! It works like a champ. No problem at all getting it to work. Thanks! 8-) Now I have to figure out how to turn it off so that only the selected radio button has bold text. But don't tell me! Let me see if I can figure it out myself.
Cheers, DeeHint: use a function.
|