J
J. Franchino
Why doesn't this work? specifically, the space in "word word" throws
it all off. What's the right way to do this? Thanks. -jf
<script language="JavaScript">
function change_text(id,str) {
document.getElementById(id).innerHTML=str
}
</script>
<div onclick=change_text("num1","word word")>click here</div>
Span: <b><span id="num1">num1</span></b>
it all off. What's the right way to do this? Thanks. -jf
<script language="JavaScript">
function change_text(id,str) {
document.getElementById(id).innerHTML=str
}
</script>
<div onclick=change_text("num1","word word")>click here</div>
Span: <b><span id="num1">num1</span></b>