|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Javascript And Forms
how do you get the value of a form with javascript?
|
|
#2
|
|||
|
|||
|
RE: Javascript And Forms
var X = document.formname.elementname.value
formname is the name of the form elementname is the name of the form element you can reference the value directly, you do not have to assign it to another variable. For example if(document.formname.elementname.value=="Y"){ alert("The value is Y") }else{ alert("The value in not Y") } |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Javascript And Forms |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|