I have something like this: $("#clickid").click(function() { $("#divid").slideToggle("fast"),function() { $("#divid:visible #txtfieldid").focus(); }); });
Basically there is a textfield inside a form inside the div that I want to focus when the div is shown, and the clicking obviously will toggle the div. This works fine in FF3 but in IE6, the content of the div not shown although the elements take up the space (and the entire page moves depending when the div is open or closed). However, just the toggle without the function to focus works just fine in IE6. $("#clickid").click(function() { $("#divid").slideToggle("fast"); });