| View previous topic :: View next topic |
| Author |
Message |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
Anyone know why document.getElementById("foo").value = bar1+bar2+bar3; doesn't work for me?
Bar1= document.getElementById['bar1']; etc.
Shouldn't that work? or am I missing something?
Reply with quote
|
| |
|
|
Klimapol Enthusiastic Coder
Joined: 27 May 2006 Posts: 134
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
Well, if i want to concat input fields and make them the value of another, what would be the best way to do that?
Reply with quote
|
| |
|
|
Klimapol Enthusiastic Coder
Joined: 27 May 2006 Posts: 134
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
|
Should it be document.form.blah.value ?
Maybe i'm just not seeing when the best time is to use getElementById
Oh... hmmm ok
Reply with quote
|
| |
|
|
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
| |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
Koplaf Enthusiastic Coder
Joined: 28 May 2006 Posts: 130
| |
PaulKolin Enthusiastic Coder
Joined: 25 May 2006 Posts: 108
| |
| Page 1 of 2 |
Goto page 1, 2 Next |
|