title: Jquery undefined for jquery.parent().attr()
body: <p>This is the parent div, it's a  html template created using Moustache.js</p>
  
  <pre><code>&lt;div class="downloadReport" param ="{{#params}}{{id}}{{/params}}"&gt;&lt;a href="#"&gt;
  &lt;img class="downloadMVReportFromAdmin" alt ="{{mainTitle}}" src="{{indexPageImageURL}}"  
  /&gt;&lt;br/&gt;'
  '&lt;input type="button" id="{{id}}-button" value="Download"   
  class="downloadMVReportFromAdmin" param="{{#params}}{{paramValue}}{{/params}}"/&gt;&lt;/a&gt;
  &lt;/div&gt;'
  </code></pre>
  
  <p>i am trying to use</p>
  
  <pre><code>$(.downloadMVReportFromAdmin).live('click',function(){
      var url = $(this).parent('.downloadReport').attr("param");
      alert(url);
  }
  </code></pre>
  
  <p>Iam getting undefined value for the variable url
  I am just following the syntax given for jquery.parent() in the jquery site. Please correct me if am wrong.</p>