ASKME
0 votes
308 views
by (375 points) | 308 views

1 Answer

0 votes

<a href="/pstudent_reg" onclick="print_img()"class="btnprn btn"><b>Print ID </b></a>

 <script type="text/javascript"> 

$(document).ready(function()

$('.btnprn').printPage(); });

 function print_img() { 

var elements = document.getElementById("print_id").innerHTML; 

var original =document.body.innerHTML;

document.body.innerHTML =elements; window.print(); 

document.body.innerHTML =original; 

</script>

මේ js script Function එක පාවිච්චි කරලා Image එකක් හෝ Card එකක් Print කරන්න පුලුවන් 

by (588 points)

742 questions

291 answers

7 comments

5.1k users

Welcome to Askme.lk, where you can ask questions and receive answers from other members of the community.
742 questions
291 answers
7 comments
5,061 users