-
Could someone give me a J script function
to change a text box value??
The code needs to do this..
FunctionCall(20)
Function Functioncall ( Value as iNteger)
Text box = Text Box + Value
end function
How do I do that in JavaScript?
Thanks!
-
Code:
<script>
function functioncall(ivalue) {
document.FormName.TexBox.Value = document.FormName.TextBox.value + ivalue
}
</script>
of course you will have to create the form
Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM NAME="FormName">
<INPUT TYPE="TEXT" NAME="TextBox" SIZE=50>
<INPUT TYPE="BUTTON" NAME="Button1" VALUE="Click Me" onClick="functioncall(20)">
</FORM>
</BODY>
</HTML>