Undefined textfield value
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Brian_Boyle
Posted On:   Wednesday, March 3, 2004 06:14 AM

Hi!


I am trying to assign a value to a textfield in my jsp page. When I press a button it calls a java script function to increment the value of the textfield by one. However when I press the button nothing is happening. I used the alert function to find out the value of my textfield.


alert(document.myform.myinput.value)


this returned a value of "undefined". Why would this be happening? Because of this I cannot assign a value to that textfield


document.myform.myinput.value = 1;


THanks for your help,

B

Re: Undefined textfield value

Posted By:   Firat_Tiryaki  
Posted On:   Thursday, March 4, 2004 12:19 AM

check out the form and input names, be sure that you are using them correctly and case sensitive...
About | Sitemap | Contact