title: jQuery: Apply CSS to parent DIV
body: <p>Let's say I'm doing a code. This code uses kontextua ads </p>
  
  <pre><code>&lt;div class="pread"&gt;
      &lt;div class="postad kontextuaDisplayREGULARS728x90"&gt;
      &lt;div style="display: block !important; margin-bottom: 0px !important; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; overflow-x: hidden !important; overflow-y: hidden !important; padding-bottom: 2px !important; padding-left: 4px !important; padding-right: 4px !important; padding-top: 2px !important; z-index: 10000 !important; "&gt;
          &lt;iframe style="display: block; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; overflow-x: hidden; overflow-y: hidden; background-position: initial initial; background-repeat: initial initial; " frameborder="0" width="728px" height="90px" src="javascript:(function(){return '&lt;html&gt;&lt;meta http-equiv=\'Content-Type\' content=\'text/html\' charset=\'UTF-8\'&gt;&lt;/meta&gt;&lt;head&gt;&lt;style&gt; html { overflow:hidden; } body { background-color:transparent; float:left; padding:0; margin:0; overflow:hidden; height:90px;width:728px;} .contenido{margin:0}&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;div class=\'contenido\' id=\'banner\'&gt;&lt;SCRIPT TYPE=\'text/javascript\' SRC=\'http://ad.yieldmanager.com/st?ad_type=ad&amp;ad_size=728x90&amp;section=2871061\'&gt;&lt;/SCRIPT&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;'})()"&gt;&lt;/iframe&gt;
      &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I wan't to know when clicked and apply a CSS to parent ".pread". How can I do this?</p>
  
  <pre><code>&lt;script&gt;
          $(".postad").live('click', function(){
          alert("clicked");
              $(this).parent().css({
                  'backgroundImage' : 'url(http://cdn1.iconfinder.com/data/icons/DarkGlass_Reworked/128x128/actions/camera_test.png)',
                  'backgroundColor' : 'limeGreen'
              });
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>But it doesn't work. Thanks!</p>