title: Getting value from toggle switch in jQuery Mobile
body: <p>Super basic question, but I can't figure out why the following code won't work:</p>
  
  <p><a href="http://jsfiddle.net/2ckHr/3/" rel="nofollow">http://jsfiddle.net/2ckHr/3/</a></p>
  
  <p>HTML</p>
  
  <pre><code>&lt;label for="flip-1"&gt;Flip switch:&lt;/label&gt;
  &lt;select name="flip-1" id="flip-1" data-role="slider"&gt;
      &lt;option value="off"&gt;Off&lt;/option&gt;
      &lt;option value="on"&gt;On&lt;/option&gt;
  &lt;/select&gt; 
  
  &lt;button id="submit"&gt;Submit&lt;/button&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$(document).delegate("#submit", "tap", function() {
      alert($("#flip-1").val());
  });
  </code></pre>
  
  <p>Returns <code>Uncaught TypeError: Cannot call method 'call' of undefined (jquery.mobile-1.3.0-beta.1.js:2823)</code> when submit is pressed.</p>