What is wrong in the jquery code?
<p>I have been struggling in fixing this code, wonder what is wrong at all...</p>

<pre><code>var tips = "&lt;p class="adobe-reader-download"&gt;Most computers will open PDF documents automatically, but you may need to download &lt;a title='Link to Adobe website-opens in a new window'";
tips +=" href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'&gt;Adobe Reader&lt;/a&gt;.&lt;/p&gt;";


if($("div#maincontent a[href*='.pdf']").length&gt;0){
    $("div#maincontent").children(":last-child").after(tip);
</code></pre>
