Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="search_item_list clearfix" id="response">
- <?php foreach($jobs as $job){
- ?>
- <a class="copy_text" data-toggle="tooltip" title="Copy to Clipboard"
- href="<?=base_url().'home/company_profile_detail?id='.$job['company_id'];?>"><span class="icon link"><i class="fa fa-link"></i></span>Copy Link</a>
- <?php } ?>
- </div>
- <script>
- $(".copy_text").click(function(e){
- e.preventDefault();
- var button = $(this);
- var text = button.attr("href");
- text.select();
- $(document).execCommand("copy");
- alert("Copied the text ");
- })
- </script>
Add Comment
Please, Sign In to add comment