How To Pass Theme Path In Javascript Ajax to Pass Id On another Page in WordPress Custom Page Template?

You have 2 ways to pass the theme name into the javascript

  1. You can pass it as a variable into it in case you are using Ajax.
  2. If you are using any php file you can use <?php bloginfo('template_url); ?>

Let me know if you need any more help