Craig
I think you are trying to go this route.
Firstly: although you could technically manipulate the response using javascript / jquery before entering them on the page, it will be much easier for you to do this immediately after adding them (according to the finished document).
Secondly: I'm not sure how effective this method is if you added something like datepicker. I assume that you cannot add a datepicker element to the element before everything is on the page (just a hunch). These jQuery UI widgets work a lot in the background.
I suggest you follow Matt's advice.
If you call $ .post, the callback function is the same as the $ (document) .ready function, it will be called as soon as an answer is received, so you can do something like this:
$.post(url, data, function(response) { $("#some_element").append(response);
This is the best way to do this. Manipulation will be performed as soon as the data is entered on your page in the same way as $ (document) .ready.
If you think that there is some lag behind what you are doing and you do not want your users to see, then set the display to hide and then disappear or show as soon as the manipulation is done.
going
source share