I want to print the content of a div using jQuery. This question is already asked in SO, but I can\'t find the correct (working) answer.
This is is my HTML:
Without using any plugin you can opt this logic.
$("#btn").click(function () { //Hide all other elements other than printarea. $("#printarea").show(); window.print(); });