IE8 checkbox not printing bug fix using jQuery



checkbox IE8 bug

IE8 has a bug where if you check a checkbox then print the form the checkbox does not show as being checked. MSFT bug #431489 I’ve found that this piece of code solves that problem and it works for HTML5.

IE8 checkbox printing bug FIX

// fix for ie8 printed checkbox bug
$('input[type=checkbox]').live('change', function(){
		$(this).attr('checked', true);
	} else {
		$(this).attr('checked', false);

You can also try this method of changing the DOCTYPE tag if you don’t need HTML5 markup.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “”>


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.