ASKME
0 votes
298 views
by (375 points) | 298 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 (576 points)

721 questions

289 answers

6 comments

3.9k users

Welcome to Askme.lk, where you can ask questions and receive answers from other members of the community.
logo
721 questions
289 answers
6 comments
3,898 users