checking to have the matched class names and do something
<p>i want to check if i have elements with a matched className that is being dynamically generated and apply some code in this case : </p>

<p>say:</p>

<pre><code>&lt;div class="c red"&gt;&lt;/div&gt;
&lt;div class="c green"&gt;&lt;/div&gt;
&lt;div class="c red"&gt;&lt;/div&gt;
&lt;div class="c yellow"&gt;&lt;/div&gt;
&lt;div class="c red"&gt;&lt;/div&gt;
</code></pre>

<p>i want to check if for those tags that has class "red" and apply something to them
but keep in mind that i cant call the $(".red") element directly because it can vary each time the page load and become diffrent color next time , so i want a generic solution to check if there is a match in class names in the document </p>
