3
I would like to add a Bootstrap button to invoke the printing of a page’s content, I got this example, but it works from a link, see: Example
The code places the link at the top of the page, I also saw an example right here, in this link Stackoverflow example, but would not like to open the page with content again, simply click the button, call the print box and print as in the first cited example.
The code of the first example is this:
$(document).ready(function() { $('#container').prepend('Click aqui para imprimir'); $('a#print').click(function() { window.print(); return false; }); });
Hello @Gabriel Rodrigues, thank you so much for the collaboration, was of great help.
– adventistapr