What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-01 04:09:02
print page using js
$('.print-btn').click(function(){ var printed_id = $(this).attr('data-id'); if( printed_id ){ var printed_content = $($('#' + printed_id).html()); $('body').children().css('display', 'none'); $('body').append(printed_content); window.p... Add solution
Best helpers
Colocvial
+5
Tjd
+5
Zagi
+5
Tobiak777
+5
Leosar
+5
Sarah witte
+5
Gouri
+5
Gabi Purcaru
+5
Pooria Han
+5
Skry
+5
Mladenka
+5
Yoyo
+5
Thorba
+5
L. Samson
+5