This is a discussion on "Need javascript to set input field value field" within the JavaScript Forum section. This forum, and the thread "Need javascript to set input field value field are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Need javascript to set input field value field
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I know absolutely nothing about javascript. But I need a script that will take two parameters (field_ID, myValue) and place the 'value' supplied into the field_ID supplied.
I have tried... document.formname.getelementbyid(field_ID).value = myValue but it does not work. TIA for your assistance. |
|
|
|
|||
|
Re: Need javascript to set input field value field
Thanks guys. You are the greatest. That worked fine.
|
![]() |
| Tags |
| input, javascript, value |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Validating Input Text field | Mallik | Flash & Multimedia Forum | 1 | Jun 11th, 2007 14:44 |
| validate text field to db field | jtesolin | Classic ASP | 1 | Jul 18th, 2006 17:48 |
| Odd input field not displaying problem | hankhill | Classic ASP | 1 | Jun 26th, 2006 23:11 |
| Javascript Hidden field problem... | Rudie | JavaScript Forum | 14 | Jun 20th, 2006 22:06 |
| adding a field input to the subject in a form | goatsalad | PHP Forum | 1 | Feb 3rd, 2006 14:49 |