How to print a hidden image using Javascript.
I have two images.I am showing first image on the page.I want to print the second image using Java script.(this image is not showing on the page. its visible is false.).How i will print the second image(only image,not whole page) which is not showing on the page using java script.


Ramasagar PulidindiRank #163 · 14.4K reputationPosted Dec 29, 2013, 3:38 AM EST
<div id="printdiv" class="printable">.
second image
<script type="text/javascript">
$(function() {
$("#hrefPrint").click(function() {
// Print the DIV.
$("#printdiv").print();
return (false);
});
});
script>