TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Prakash Kumar
NA
13
4.1k
Clipboard copy javascript all browsers but my code not work
Jul 14 2016 3:00 AM
label here is values
<label id="lblFileName" style="font-size:16px;font-weight:bold"></label>
button here
<button class="btn" data-clipboard-action="copy" data-clipboard-target="#lblFileName">Copy</button>
javascript code here
<script src="~/clipboard.js-master/dist/clipboard.min.js"></script>
<script>
var clipboard = new Clipboard('.btn');
clipboard.on('success', function (e) {
console.log(e);
});
clipboard.on('error', function (e) {
console.log(e);
});
</script>
Reply
Answers (
3
)
Convert c# object to json & deserialize back json to c# obje
File Upload in asp.net c#