![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a button that puts a value into a field. It work when there is no space in the field name. But doesn;t work if there is. How can I make it work. input type="text" name="with space" value=""> <input type="button" name="defualt" value="NewValue" onclick="with space.value='NewValue';" |
#3
| |||
| |||
|
|
"Oak Hall" <oak (AT) scenicmls (DOT) com> kirjoitti viestissä:jtqPe.709$Xo3.124 (AT) news01 (DOT) roc.ny... I have a button that puts a value into a field. It work when there is no space in the field name. But doesn;t work if there is. How can I make it work. input type="text" name="with space" value=""> <input type="button" name="defualt" value="NewValue" onclick="with space.value='NewValue';" That's easy, stop using spaces in object names. That's just the first problem you've encountered, and if you continue using spaces, you will find so many other "space in name" related problems. -- SETI @ Home - Donate your cpu's idle time to science. Further reading at <http://setiweb.ssl.berkeley.edu/ Kimmo Laine <eternal.erectionN0 (AT) 5P4Mgmail (DOT) com |
#4
| |||
| |||
|
|
replace with %20? Thanks Oak |
#5
| |||
| |||
|
|
I have a button that puts a value into a field. It work when there is no space in the field name. But doesn;t work if there is. How can I make it work. input type="text" name="with space" value=""> <input type="button" name="defualt" value="NewValue" onclick="with space.value='NewValue';" |
![]() |
| Thread Tools | |
| Display Modes | |
| |