Opening pdf links in new window with jQuery
<p>This is probably VERY simple and silly, but I am trying to use jQuery to open all pdf's in new windows.  I used the code below and get this error: </p>

<blockquote>
  <p>uncaught exception: Syntax error, unrecognized expression: [href$=.pdf]</p>
</blockquote>

<p>I am being a nitwit, I am sure, any help would be appreciated. </p>

<p>Note: I subbed in jQuery for $ because I am using Wordpress.</p>

<pre><code>&lt;script type="text/javascript"&gt;
jQuery(function() {
jQuery("a[href$=.pdf]").click(function() {
window.open(this.href);
}); 
}); 
&lt;/script&gt;
</code></pre>
