title: How to display user inputs onclick event in jquery
body: <p>I have a form with different fields like radiobutton, checkbox and 
      list menu(dropdown). After completion of user input he will click a 
      button like show preview. Then how can i display userinput based on selection in 
      onclick  event in jquery?</p>
  
  <pre><code>&lt;input type = "checkbox" id="stateid" name="stateid" value=""&gt;
  &lt;input type = "radio" id="gender" value="male"&gt;
  </code></pre>