Buttons Export and Print do not copy values in input fields
Buttons Export and Print do not copy values in input fields
ViniciusMachado
Posts: 10Questions: 1Answers: 0
Hi Im having trouble trying to print or export the values from input fields. They go all empty. Also from the select fields (<select>) the export buttons bring all the values from the options tag. How can I fix it? Is there a way of printing the table with the table style? At least with the header background and all the cell border?
Regards
This discussion has been closed.
Replies
Hi, man. Did you get this done? I have the same issue and the answer here:
https://www.datatables.net/forums/discussion/23965/jquery-datatables-tabletools-export-get-values-of-checkboxes-or-radio-items
seem to be different to the "buttons" options.
A way around text input fields is to add a hidden span in the same cell. Then just use jQuery/javascript to update the span on key press of the text field.
Ex:
<td><input type="text" /><span style="display: none;"></span></td>.
I have the exact same issue with the select fields and have not found a way around that yet.
Actually.. works!
I'll use that solution, sportsreport2. Thanks!
No problem. I wish there was a way around the select boxes though....