title: Find children of type canvas in Jquery
body: <p>Here is a code snippet of the HTML that I have:</p>
  
  <p>I have row </p>
  
  <pre><code>&lt;tr class ="chart_row"&gt;
  &lt;td&gt;
  &lt;span&gt;&lt;canvas style="display: inline-block; width: 70px; height: 20px; vertical-align: top;" width="70" height="20"&gt;&lt;/canvas&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>There could be multiple td's with elements of type canvas. I want to apply the css style <code>{cursor:pointer}</code> programatically to all canvas elements within a row of class chart_row using jquery.</p>
  
  <p>I tried something like this:</p>
  
  <pre><code>$('.chart_row canvas')each(function() 
      { 
               $(this).css('cursor', 'pointer'); 
      }); 
   }); 
  </code></pre>
  
  <p>It doesn't seem to work. Any ideas and suggestions.</p>