Iterate and add Class to Each Paragraph
<p>I'm trying to add a class "ignore" to the first P and a class "style" for the last P for each block.</p>

<pre><code>&lt;div class="tiles_large"&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
       &lt;p&gt;image here&lt;/p&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
       &lt;h4&gt;headline here&lt;/h4&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
       &lt;p&gt;content here&lt;/p&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
    &lt;/div&gt;

    &lt;div class="tiles_small"&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
       &lt;p&gt;image here&lt;/p&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
       &lt;h4&gt;&lt;div&gt;&lt;span&gt;headline here&lt;/span&gt;&lt;/div&gt;&lt;/h4&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
       &lt;p&gt;content here&lt;/p&gt;
    &lt;span class="spacer"&gt;&amp;nbsp;&lt;/span&gt;
    &lt;/div&gt;
</code></pre>

<p>This is my jquery, but it's not returning the expected results.</p>

<pre><code>  $(".tiles_large p,.tiles_small p").each(function() {
    $(this).find("p:first").addClass("ignore");
  });

  $(".tiles_large p,.tiles_small p").each(function() {
    $(this).find("p:last").addClass("style");
  });
</code></pre>

<p><a href="http://jsfiddle.net/gsg3m/" rel="nofollow">Here is my fiddle</a></p>
