Thursday, November 26, 2009

[jQuery] function in ready not run in IE

Hello,

I have below code that run the function when document is ready. It
works fine in Firefox but not IE. What did I do wrong? Looks like the
code doesn't get run at all. I tried jQuery(function() ... but it
didn't work too


$(document).ready(
function() {
var $items = ['regular', 'outsource', 'total_headcount', 'internal',
'external', 'resigned', 'eligible', 'member', 'valoptec_percent'];

$($items).each(function() {
totalIt(this);
});
}
);

Thanks!

No comments: