title: jquerymobile radio button values go missing?
body: <p>I have a small web app I'm testing and previously this worked:</p>
  
  <pre><code>    if ($(this).is(':radio') &amp;&amp; $(this).is(':checked'))
      {   
          val       = $(this).val();
          saveThis  = true;
      } else if ($(this).is(':checkbox') &amp;&amp; $(this).is(':checked')) {
          val       = true;
          saveThis  = true;
      } else if (($(this).is(':checkbox') || $(this).is(':radio'))) {
          saveThis  = false;
      } else {
          val       = $(this).val();
          saveThis  = true;
      }   
  </code></pre>
  
  <p>Here is the form:</p>
  
  <pre><code>&lt;div data-role="fieldcontain"&gt;
      &lt;fieldset data-role="controlgroup"&gt;
          &lt;legend&gt;Capture Type:&lt;/legend&gt;
              &lt;input id="capture_type_onsite" name="capture_type" type="radio" value="onsite" /&gt;
              &lt;label for="capture_type_onsite" style="width: 200px;"&gt;OnSite&lt;/label&gt;
  
              &lt;input id="capture_type_phone" name="capture_type" type="radio" value="phone" /&gt;
              &lt;label for="capture_type_phone" style="width: 200px;"&gt;Phone&lt;/label&gt;
      &lt;/fieldset&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But now, when I do <code>console.log($(this))</code> ($this being the form element), I get:</p>
  
  <pre><code>&lt;input id=​"contact_type_member" name=​"contact_type" type=​"radio" value&gt;
  </code></pre>
  
  <p>Here is the code from above with some console.log's thrown in:</p>
  
  <pre><code>    if ($(this).is(':radio') &amp;&amp; $(this).is(':checked'))
      {   
      console.log('Radio checked: '+$(this).attr('name')+' '+$(this).val());
      console.log($(this));
          val       = $(this).val();
          saveThis  = true;
      } else if ($(this).is(':checkbox') &amp;&amp; $(this).is(':checked')) {
      console.log('Checkbox checked: '+$(this).attr('name')+' '+$(this).val());
          val       = true;
          saveThis  = true;
      } else if (($(this).is(':checkbox') || $(this).is(':radio'))) {
      console.log('Checkbox or radio NOT checked: '+$(this).attr('name')+' '+$(this).val());
          saveThis  = false;
      } else {
      console.log('OTHER input: '+$(this).attr('name')+' '+$(this).val());
          val       = $(this).val();
          saveThis  = true;
      }   
  </code></pre>
  
  <p>Here's what the is(:radio) is(:checked) -- first if statement -- shows:</p>
  
  <pre><code>Radio checked: capture_type 
  [&lt;input id=​"capture_type_onsite" name=​"capture_type" type=​"radio" value&gt;​]
  </code></pre>
  
  <p>I'm trying to save with localStorage (I create an object of all form elements, then save it using JSON.stringify), then re-populate records based on which one they chose. This all worked before I implemented jQuery Mobile so I guess it must be doing something with the values, but I'm not sure. As you can see from the debugging statement, the value is empty by the time it gets to this.</p>
  
  <p>Thanks in advance,
  Hans</p>