Skip to content

Blogs

//jQuery(document).ready(function ($) { //}); //alert('click'); jQuery(document).ready(function() { jQuery(document).on("click",".clipboard-link",function() { var $copyURL = jQuery(this).attr('data-clipboard-text'); $temp=jQuery('') //alert(copyText); /* Select the text field */ //copyText.select(); // copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ //var copyurl = navigator.clipboard.writeText(copyText); //console.log(copyurl); jQuery("body").append($temp); $temp.val($copyURL).select(); document.execCommand("copy"); $temp.remove(); }); });

Subscribe to get Latest News