I know that when using Wordpress, in a php file you can say
<img src="<?php bloginfo('template_directory'); ?>/images/image.png"/>
and it knows that you want the current template directory, so that you can make a plugin universal.
I want to add some html dynamically using jQuery that includes something like <?php bloginfo('template_directory'); ?>
to define my path.
So my question is, how do get and then define my template path in jQuery?