how to add numarical values to javascript variable?
<p>I'm trying to add <code>1</code> to my JavaScript variable, but the following code is giving me an error:</p>

<pre><code>var val1 = document.getElementById('&lt;%= rng1.ClientID %&gt;');
var val2 = val1.value + "1";
alert(val2.value);
</code></pre>

<p>How can I do this?</p>
