Uncaught TypeError: Object [object Object] has no method 'zclip'
I am using click to copy clipboard in my project. It is successfully applied to my project but after I did some modifications on that page it is not working. In my browser console it is showing this error every time "
Uncaught TypeError: Object [object Object] has no method 'zclip'
"
Tell me the solution how to solve this problem.
<script src="/js/jquery-1.9.1.js"></script>
<script src="/js/jquery.zclip.min.js"></script>
<script>
$(document).ready(function() {
$("a.copy").each(function() {
var id = $(this).attr("id");
$('a#' + id).zclip({
path: '/js/ZeroClipboard.swf',
copy: $('a#' + id).text(),
url: $('#' + id + '_url').val()
});
});
});
</script>
HTML:
<div class="coupon-container"><a href="#" class="copy" id="textfield" title="Click to copy Coupon code"><core:out escapeXml="true" value="${coupon.couponCode}"/></a></div>