I want to use the delegate() method to call my JS script to affect form elements BEFORE the JQM changes them but I am having difficulty. I need this because I need my JS converting radios to selects and have JQM display them as selects (so they need converting before JQM modifies the elements).
$( document ).delegate("body", "pagebeforecreate", function() {
convertToDD("71471a43517b09");
});
The above is how I am calling my JS call, but it simply displays an infinite loading circle when loading the page.
My little brain is unfortunately too little to be able to follow exactly how to manipulate this function to understand what is going on to resolve.
Am I either doing something wrong (which obviously I must be), is there a better way to achieve this?