Menu
I am using this code to show text when a radio button is clicked.
How can I make it show html instead of the text?
[code=html]<script type=text/javascript>
<!–
var txt =’Please list the date and location of the event below.’
function showT(r){
var rads = document.getElementsByName(r.name)
if(rads[0].checked){
document.getElementById(‘RadioText’).innerHTML=txt
document.getElementById(‘RadioText’).style.display=”block”
}
else{
document.getElementById(‘RadioText’).innerHTML=”” // optional
document.getElementById(‘RadioText’).style.display=”none”
}
}
//–>
</script>