[jQuery] How to speed up jQuery

[jQuery] How to speed up jQuery


Dear developers,
I have a function which is called several times, when my page is
loaded. This is VERY slow under IE, because I have a lot of checkbox.
Did someone can explain me this difference between FF and IE ? And
maybe how to improve this function :
function myToggleShow(checkboxElem, showHideElem){
var showHide = $(showHideElem);
var checkbox = $(checkboxElem);
checkbox.click( function() {
if (checkbox.is(":checked")) {
showHide.show('slow');
// Change the background for "even" lignes
changeBg()
} else {
    showHide.hide('slow');
}
});
// check the checkbox status when the form is loaded
if (checkbox.is(":checked")) {
    showHide.show('slow');
}
}
myToggleDisplay('#myCheckboxID', 'td.areaToShow');
FYI, I cannot use the toggle function, which didn't work with
checkbox !!!
Thanks,
Damien