title: Jquery append when radio button selected
body: <p>I don't know why but hopefully, someone can help me out with the following code.</p>
  
  <pre><code>    &lt;script src="/jquery-1.7.2.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      $(".static_class").click(function(){
          if($(this).val()==="expanded") 
              $(".widget_prev").append("&lt;p&gt;expanded&lt;/p&gt;"); 
          else $(".widget_prev").append("&lt;p&gt;minified&lt;/p&gt;");
      });
      &lt;/script&gt;
  
      &lt;div&gt;
      &lt;input type="radio" name="ad_window" selected="selected" value="expanded" class="static_class" /&gt;Ad Window Expanded
      &lt;br /&gt;
      &lt;input type="radio" name="ad_window" value="minified" class="static_class" /&gt;Ad Window Minimized
      &lt;b&gt;Widget Preview: &lt;/b&gt;
      &lt;div class="widget_prev"&gt;&lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Can't seem to get the text appended. Wonder where the problem lies.</p>