title: Path to WordPress Template Directory inside jQuery?
body: <p>My header is calling a javascript file which sends out an email:</p>
  
  <pre><code>&lt;script type="text/javascript" src="&lt;?php bloginfo('template_directory') ?&gt;/css/effects.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But inside this file, I have a jQuery code that calls a .php file that does the actual sending of the email:</p>
  
  <pre><code>$.ajax({
    type: "POST",
    url: "css/sendmail.php",
    data: dataString`
  </code></pre>
  
  <p>But the script doesn't work, unless the url is:</p>
  
  <pre><code>&lt;?php bloginfo('template_directory') ?&gt;/css/sendmail.php
  </code></pre>
  
  <p>and not just:</p>
  
  <pre><code>css/sendmail.php
  </code></pre>
  
  <p>Is there any way to include a path to the wordpress template directory inside js?</p>