Hi,
I have text box in a form which I want populate when the form loads. I am using <html:text> tags for text boxes, I tried the following but dosent seem to work. any ideas thanks in advance.
I have text box in a form which I want populate when the form loads. I am using <html:text> tags for text boxes, I tried the following but dosent seem to work. any ideas thanks in advance.
Code:
<script language="JavaScript">
setCode()
{
if(this.form.inputSIC.value == "")
{
alert("inside if");
this.form.inputSIC.value = 100;
this.form.inputName.setfocus();
}
}
</script>
<body onload="setCode()">......
<html:text property="inputSIC" size='10'...