Currently, I am having a problem replacing the value of a input box
with something else using the innerHTML thing. Right now I have
something going
<script type="text/javascript"><!--
function changeText(newT ext){
document.getEle mentById("WHATE VER").innerHTML =newText
}
//-->
</script>
and a link with
<a href='javascrip t:changeText("H ola Mi Amigo")'>Dont know</a>
and the text box like
<INPUT TYPE="TEXT" NAME="WHATEVER" id="WHATEVER" VALUE="TESTING"
SIZE=60">
and I am trying to replace what is enterd in the text box with "Hola Mi
Amigo." However, it doesnt seem to want to do it. Maybe I am doing
something wrong, but I have no idea what my problem is.
with something else using the innerHTML thing. Right now I have
something going
<script type="text/javascript"><!--
function changeText(newT ext){
document.getEle mentById("WHATE VER").innerHTML =newText
}
//-->
</script>
and a link with
<a href='javascrip t:changeText("H ola Mi Amigo")'>Dont know</a>
and the text box like
<INPUT TYPE="TEXT" NAME="WHATEVER" id="WHATEVER" VALUE="TESTING"
SIZE=60">
and I am trying to replace what is enterd in the text box with "Hola Mi
Amigo." However, it doesnt seem to want to do it. Maybe I am doing
something wrong, but I have no idea what my problem is.
Comment