title: jQuery Select list, selected text value rather than the value
body: <p>building on my last question <a href="https://stackoverflow.com/questions/9191278/jquery-getting-values-from-multiple-selects-together">jQuery getting values from multiple selects together</a> </p>
  
  <p>I have the select list like:</p>
  
  <pre><code>  &lt;select name="access" class="change" id="staff_off"  runat="server"&gt;
                  &lt;option value="8192"&gt;Off&lt;/option&gt;
                  &lt;option value="8192"&gt;On&lt;/option&gt;
    &lt;/select&gt;
  </code></pre>
  
  <p>And I basically want to add or subtract the value of the options if it's off, subtract if it's on add it. It's going to be stored in a cookie (it uses bitwise)</p>
  
  <p>The jquery I have is:</p>
  
  <pre><code>&lt;script&gt;
  
          $(document).ready(function(){
             var currentAccess = $.cookie("access");
          })
  
          $("select").change(function () {
              var currentText = $(this).text()
              var value = $(this).val()
  
                $.cookie("access", value, { expires: 24 });
  
                alert(currentText);
  
                alert( $.cookie("access") );
  
              })
  
      &lt;/script&gt;
  </code></pre>
  
  <p>I'll do the addition in the change function. The thing I can't work out is how to get the text of the select to do an if statement (so if it's yes, add the value, if it's no, subtract the value)</p>
  
  <p>Tom</p>