Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected radio buttons in IE not printing correctly #10

Open
gharris388 opened this issue Aug 11, 2017 · 0 comments
Open

Selected radio buttons in IE not printing correctly #10

gharris388 opened this issue Aug 11, 2017 · 0 comments

Comments

@gharris388
Copy link

We have a long questionnaire in our application that contains a series of radio buttons. When the user prints the document from FF, the selected radio buttons appear correctly. In IE, the selections are lost.

We are using IE 10. In IE 7 and 8, the selected radio buttons appeared correctly.

To solve the issue, the following snippet of code in the _getElementHTMLIncludingFormElements method had to be changed.

-original code

//Radiobuttons and checkboxes
$(":checked", $element).each(function () {
this.setAttribute('checked', 'checked');
});

was changed to

$(":checked", $element).each(function (j) {
$(this).prop('checked', 'checked');
});

We found that everything was okay with the radio elements up until the html() method was called. The checked property was still present after the clone method was called but it was lost once the html() method was executed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant