print a div through javascript.
<script type="text/javascript">
$("#btnPrint").live("click", function () {
var divContents = $("#dvContainer").html();
var printWindow = window.open('', '', 'height=400,width=800');
printWindow.document.write(divContents);
printWindow.document.close();
printWindow.print();
});
</script>
$("#btnPrint").live("click", function () {
var divContents = $("#dvContainer").html();
var printWindow = window.open('', '', 'height=400,width=800');
printWindow.document.write(divContents);
printWindow.document.close();
printWindow.print();
});
</script>