Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

perishingflames

perishingflames Avatar

***
Dedicated Member

193


March 2007
I have two variables (both numbers) and I want to write their values into one text input field... doing it like document.forms[1].trim1.value = ... two values, separated by a space. How do I do this?

Thanks

Edit: If I have it as .value = [variable1, variable2] it sort of works.. displays it as the two numbers simply separated by a comma. But I want to replace that comma with a space (if I simply take out the comma, it breaks).

Edit2: I'm stupid... .value = variable1 + ' ' + variable2


Last Edit: Jun 11, 2010 0:12:55 GMT by perishingflames

Andrew McGivery

Andrew McGivery Avatar
Formerly Fredy

******
Legendary Studio Member

Male
5,742


September 2005
so... problem solved?
k

perishingflames

perishingflames Avatar

***
Dedicated Member

193


March 2007
Lol yes

newBookmarkLockedFalling