Hi, I am using the following jquery code in my application..
the idea is to click a button when the user comes of a form and clicks any button on the screen..
<script>
$(document).ready(function() {
$('form').focusin(function() {
$(this).addClass('focused');
});
$(':not(form)').bind('click', function(e) {
if (!$(e.target).parents('form.focused').length) {
form.getElementById("customerdetails").click();
}
});
});
</script>
this script works fine in forefox but this is extremely slow in IE6...may i know the reason for this?? does it work faster in IE8...any ideas??
please suggest to improve this in IE6
many thanks in advance, Jack.