dynamically add objects in JavaScript
hello,
i have a form and when a user hits a certain radio button. I want a certain piece of html code to run. For example: Code:
<input type='radio' value=0 name='myradio'>1 Code:
<input type='radio' value=0 name='myradio' onclick = document.myform.myradio.value = 1>1 My question is how can dynamically create html code, when a user select a radio button. Remind you that each radio button will produce different html code. thanks, djgerbavor3 |
have a look at span or div tags and their innerHTML-attributes. It may (or may not) help.
|
All times are GMT -5. The time now is 07:59 AM. |