title: How to make .pdf open in new window with jQuery?
body: <p>How can I have all links with a <code>.pdf</code> file extension open in a new window using jQuery? I need to change this:</p>
  
  <pre><code>&lt;a href="domain.com/pdf/parkingmap.pdf"&gt;parking map&lt;/a&gt;
  </code></pre>
  
  <p>In to this:</p>
  
  <pre><code>&lt;a href="domain.com/pdf/parkingmap.pdf" target="_blank"&gt;parking map&lt;/a&gt;
  </code></pre>
  
  <p>All files are in a <code>/pdf</code> folder if that helps.</p>