How to use method get value in "input[type=radio]"
<pre><code>&lt;script&gt;
$(document).ready(function(){
   $('#btnSubmit').bind('click', function(){
      var option = $('#form input[type=radio]').val();
        if(!option){
            alert('Answer empty');
            return false;
        }
        $('#form').submit();
   });
});
&lt;/script&gt;
&lt;form id="form" method="post"&gt;
&lt;input type="radio" id="option1" name="option1" /&gt;
&lt;input type="submit" name="btnSubmit" id="btnSubmit" value="submit" /&gt;
&lt;/form&gt;
</code></pre>

<p>I think it wrong in function call <code>$('#form input[type=radio]').val();</code></p>
