title: not getting radio button values in jquery ajaxform
body: <p>I have a form which is binded to a JQuery Form (AjaxForm) object.</p>
  
  <p>In the form I have some radio buttons:</p>
  
  <pre><code>&lt;input type="radio" id="dialog_stranka_dodajuredi_tip_fizicna" name="dialog_stranka_dodajuredi_tip" value="2" /&gt; Selection 2
  &lt;input type="radio" id="dialog_stranka_dodajuredi_tip_pravna" name="dialog_stranka_dodajuredi_tip" value="1" /&gt; Selection 1
  </code></pre>
  
  <p>Now, when the form gets posted via AJAX, the parameter "dialog_stranka_dodajuredi_tip" is empty. It doesn't have a value at all - regardless of which radio button is selected.</p>
  
  <p>I also tried binding a change event like this:</p>
  
  <pre><code> $('input[name=dialog_stranka_dodajuredi_tip]').bind('change', function(){ 
  
     switch (parseInt($('input[name=dialog_stranka_dodajuredi_tip]:checked').val())) {
       case 2: 
         alert('number 2 selected');
         break;
       case 1:
         alert('number 1 selected');
         break;
   } 
   }); 
  </code></pre>
  
  <p>But the val property has no value at all. The alert box doesn't pop up.</p>
  
  <p>I've used firebug to debug and set watches at this point and this is the result (values):</p>
  
  <pre><code>$('input[name=dialog_stranka_dodajuredi_tip]').val()  -&gt; value: ""
  $('input[name=dialog_stranka_dodajuredi_tip]:checked').attr('id') --&gt; value: "dialog_stranka_dodajuredi_tip_pravna"
  $('input[name=dialog_stranka_dodajuredi_tip]:checked').attr('name') --&gt; value: "dialog_stranka_dodajuredi_tip"
  $('input[name=dialog_stranka_dodajuredi_tip]:checked').val() --&gt; value: ""
  </code></pre>
  
  <p>As you can see, the val() simply doesn't return a value, although the value is set in the  tag. I'm clueless, any ideas?</p>