I am writing a plugin for the back end but I need to add javascript that is created in a for loop to the head of the page.

How do i do this?

Steve

1 Answer
1

I think what you are looking for is here (Look for the section entitled “Load Scripts only on pages where needed”):

  • What is the best way to add custom javascript files to the site?

Leave a Reply

Your email address will not be published. Required fields are marked *