Let's say I have a for loop dynamically generating Jquery functions - like so:
function addJqueryFunctions(divListJSON) {
for(var i in divListJSON)
{
var id = divListJSON[i].id;
$('#' + id + ').magicfunction();
}
}
How do I make it so that the Jquery functions generated in the for loop make it to the page and are run?