In jquery, how can I detect if a paragraph contains one link and only one link, nothing else
<p>I want to apply a class 'solo' to a link in a paragraph where that link is the ONLY element in the paragraph. </p>

<p>So this  would get the 'solo' class:</p>

<pre><code>&lt;p&gt;&lt;a&gt;I am alone&lt;/a&gt;&lt;/p&gt;
</code></pre>

<p>But this  would not:</p>

<pre><code>&lt;p&gt;&lt;a&gt;I am not alone&lt;/a&gt; because there is more text!&lt;/p&gt;
</code></pre>
