Jquery search and apply css styles
<p>I want to modify the titlebar jquery plugin showcase, I added the <code>&lt;p class='title&gt;</code> to the description tag so that I can apply css styles to the title and to separate that portion to the actual description.
Script:</p>

<pre><code>var $a = $("&lt;a /&gt;").attr("href", $container.find("a:first").attr("href")).html("&lt;span&gt;" + $container.find("a:first img").attr("alt") + "&lt;/span&gt;");

var $titleBar = $("&lt;div id='subBar' /&gt;").html($a);
</code></pre>

<p>HTML output:</p>

<pre><code>&lt;div id="subBar"&gt;&lt;span&gt;&lt;p class="title"&gt;Lorem&lt;/p&gt;description here&lt;/span&gt;&lt;/div&gt;
</code></pre>

<p>From the above structure how can I add css via jquery if <code>&lt;p class='title'&gt;</code> is encountered? I want to add css styles to class title, which is impossible to css because this is generated by javascript.</p>
