jQuery adding strings and not concatenating
<p>I'm adding values from select lists (or subtracting) and I can't seem to make it not concatenate the string.</p>

<p>My select list is:</p>

<pre><code>&lt;li class="extraHeight"&gt;
    &lt;asp:Image runat="server" CssClass="iconImageMove" ID="Image13" ImageUrl="~/images/icons/ABabyChg_Off.png" /&gt;
    &lt;div class="flipWidth"&gt;
        &lt;select name="access" class="change" id="ABabyChg_Off"  runat="server"&gt;
            &lt;option value="16777216"&gt;Off&lt;/option&gt;
            &lt;option value="16777216"&gt;On&lt;/option&gt;
        &lt;/select&gt;
     &lt;/div&gt; &lt;br /&gt; &lt;p class="noWrap"&gt;Accessible baby changing facilities&lt;/p&gt;
&lt;/li&gt;

&lt;li class="extraHeight"&gt;
    &lt;asp:Image runat="server" CssClass="iconImageMove" ID="Image14" ImageUrl="~/images/icons/carpark_off.png" /&gt;
    &lt;div class="flipWidth"&gt;
        &lt;select name="access" class="change" id="carpark_off"  runat="server"&gt;
            &lt;option value="256"&gt;Off&lt;/option&gt;
            &lt;option value="256"&gt;On&lt;/option&gt;
        &lt;/select&gt;
     &lt;/div&gt; &lt;br /&gt; &lt;p class="noWrap"&gt;Accessible Car parking facilities&lt;/p&gt;
&lt;/li&gt;
</code></pre>

<p>And my javascript is:</p>

<pre><code>&lt;script&gt;    

        $("select").change(function () {

           var currentAccess = "0";
           var currentText = $(":selected", this).text();
           var value = $(this).val()
           alert(currentAccess);
            if(currentText == "Off")

                    {
                        currentAccess -= value;
                    }  
            if(value != "0") {        
            if(currentText == "On")
                     {
                        currentAccess += value;
                     }
            }

              $.cookie("accessReqs",  currentAccess, { expires: 24 });
              alert(currentAccess);

            })

    &lt;/script&gt;
</code></pre>

<p>Basically I'm trying to have <code>currentAccess</code> to have the current value as an integer and add and subtract as is required.</p>

<p>Tom</p>
