Thread
:
Replace variable value in textbox or textarea or div by another value
View Single Post
12-07-2012, 08:41 PM
PM User
|
#
5
AndrewGSW
Senior Coder
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
I don't want to appear
pedantic
but.. DOCTYPE and title..
I would, personally, use quotes - particularly for onclick.
Added
: I might also prefer:
Code:
elm[ (elm.value) ? "value" : "innerHTML" ] = output;
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total
uninanonynymity
."
Me Myself & Irene
.
Validate your
HTML
and
CSS
Last edited by AndrewGSW; 12-07-2012 at
08:49 PM
..
AndrewGSW
View Public Profile
Find More Posts by AndrewGSW