Forum Discussion

phoneboy's avatar
phoneboy
Director
5 years ago

jQuery not adding to input field

I have a custom component for the "new post" button that, in some spaces/pages, will add elements to the post URL for tags and labels. I then have another custom component I've added on the New Post...
  • peterlu's avatar
    5 years ago

    phoneboy can you share your url example for tags and labels on the PostPage? BTW, when you embed freemarker into JS, better escape it like ${tags?js_string}

    And you can remove 

     

    $(document).ready

     

    Since  <@liaAddScript> already puts your code at the end of document. Try that first and see if it works.

    Otherwise please share the url example, I may be able to troubleshoot.