XF 2.0 Help: How Do I Creating Dynamic HTML with jQuery and Adding XenForo Listeners

robdog

Well-known member
I am trying to build an editor that doesn't reload the page. I want to dynamically add and resort the rows as new ones are added and values change to sort the order. I am using jquery code to dynamically append the HTML:

this.$target.append([WHATEVER_HTML]);

Within the appended HTML is color picker. How do I reinitialize the color picker after the page is already loaded and after I append the dynamic HTML?

Any help would be greatly appreciated, thanks.
 
Top Bottom