title: Get checked Radio Button and Selected Drop down values using Jquery
body: <p>I have a Radio Buttons for Gender and Drop down for Courses,</p>
  
  <p>I have Dynamic values in Jquery.</p>
  
  <p>How can I get the selected options in both Gender  and  Courses.</p>
  
  <p>Here is my <a href="http://jsfiddle.net/fTtmv/6/" rel="nofollow">Fiddle Demo</a></p>
  
  <p>I am providing my Code here too:</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>Male &lt;input type="radio" name="gender" id="male" value="1"&gt; - 
  
  Female &lt;input type="radio" name="gender" id="female" value="2"&gt; 
  
  &lt;br&gt;
  
  &lt;select name="courses" id="courses"&gt;
      &lt;option value="0"&gt;Choose Courses&lt;/option&gt;
      &lt;option value="1"&gt;PHP&lt;/option&gt;
      &lt;option value="2"&gt;Jquery&lt;/option&gt;
      &lt;option value="3"&gt;HTML&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>$(function() {
      //these are the values I got, these values are dynamic
      var gender = 2;
      var course = 3; 
  
  }
  </code></pre>