This Content is no print
<div id="divPrint">This Content is print</div>
<buton type="button" id="#btnPrint">Print</button>
<script>
$("#btnPrint").click(function () {
//Get the HTML of div
var divElements = document.getElementById("divPrint").innerHTML;
//Get the HTML of whole page
var oldPage = document.body.innerHTML;
//Reset the page's HTML with div's HTML only
document.body.style.backgroundColor = "white";
document.body.innerHTML =
"<html><head><title></title></head><body>" +
divElements + "</body>";
//Print Page
window.print();
//Restore orignal HTML
document.body.innerHTML = oldPage;
});
</script>