i have problems i am using the following code:<html>
<body>
<FORM NAME="ftest" Method="Post" Action=" onSubmit="return test();">
<script language="javascript">
</script>
<input type= "text" name="8" value=1 size =5>
<INPUT Type = "SUBMIT" Value="hola">
</FORM>
</body>
</html>
<script language="javascript">
function test() {
var NameText=8
var TextBox1=NameText.toString()
TextBox2=TextBox1.valueOf();
alert(document.ftest.TextBox2.value)
}
</script>
As you can see, name of my text box is a numeric value, that is why a requirement of my database to make other process later on, the point is that i wanna get that value of that text box but i cant, please i am gonna wait for your answer to see an answer.
p.s: text box's name MUST BE be numeric
<body>
<FORM NAME="ftest" Method="Post" Action=" onSubmit="return test();">
<script language="javascript">
</script>
<input type= "text" name="8" value=1 size =5>
<INPUT Type = "SUBMIT" Value="hola">
</FORM>
</body>
</html>
<script language="javascript">
function test() {
var NameText=8
var TextBox1=NameText.toString()
TextBox2=TextBox1.valueOf();
alert(document.ftest.TextBox2.value)
}
</script>
As you can see, name of my text box is a numeric value, that is why a requirement of my database to make other process later on, the point is that i wanna get that value of that text box but i cant, please i am gonna wait for your answer to see an answer.
p.s: text box's name MUST BE be numeric