Concatenation instead of adition!

Giganews Newsgroups
Subject: Concatenation instead of adition!
Posted by:  Jeremy (jeremy05…@gmail.com)
Date: Tue, 26 Sep 2006

On an HTML Page I have:

<input type="hidden" name="p_row" value="1" />

then in script we have:

document.forms.grid.p_row.value=document.forms.grid.p_row.vaue+10;

Why does this give me 110 as the result? I can see it's concatenating
the string values but how do I tell it to add the things together?

--

jeremy

Replies