<div class="grid col-220 cert">
<a href="images/1.jpg" class="certTop" rel="prettyPhoto[certificates]"><img src="images/thumb/" /></a>
<a href="images/1.jpg" class="certBottom" ><i class="fa fa-print"></i>Certificate Name </a>
</div>
我想在点击课程&#34; .certBottom&#34;时打印1.jpg。我怎么能用它?
答案 0 :(得分:0)
使用此jQuery代码:
$(document).ready(function() {
$(".certTop").click(function () {
$(this).append('<img src="images/1.jpg">');
});
});