[jQuery] IE not executing JS loaded on the fly

[jQuery] IE not executing JS loaded on the fly


Hi,
I have this code
// loads modules for the selected tab.
function loadAllModules() {
$.get('draw_modules.php',
{},
function(data){
$("#container").empty().append(data);
});
}
The page "draw_modules.php" creates some HTML and also some
Javascript. The HTML gets loaded fine, but the JS doesn't get
executed on PC IE 7. The JS is stuff like:
document.getElementById('ce10').checked = true;
What is a better way of running the JS on IE? If my question doesn't
make sense, please let me know what else I can include.
Much thanks, - Dave