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.
Ikram ShamsPosted Jan 8, 2014, 3:48 PM
Ikram ShamsPosted Dec 30, 2013, 3:44 AM
I am using this code to hide the image. Please suggest me.
Ramasagar PulidindiPosted Dec 29, 2013, 8:38 AM
<div id="printdiv" class="printable">.
second image
<script type="text/javascript">
$(function() {
$("#hrefPrint").click(function() {
// Print the DIV.
$("#printdiv").print();
return (false);
});
});
script>