title: jQuery Radio Button Show/Hide
body: <p>I'm trying to use radio buttons to show and hide a div but can't get the below to work, any help would be great?</p>
  
  <pre><code>    $('input:radio[name="option"]').click(function() {
      if ( $(this).val() == "pop" ) {
          $(this).parent().next('.wrapper').show();
      } else {
          $(this).parent().next('.wrapper').hide();
      }
  });
  
  &lt;input name="option" type="radio"&gt;
  &lt;input name="option" type="radio" value="pop"&gt;
  
  &lt;div class="wrapper"&gt;text&lt;/div&gt;
  </code></pre>