I have copied the div element to the alert box. Now when I pressed ok button is it possible the text is copied to the user's clipboard.
Here is the code for reference:
$(document).ready(function(){
$("#bn").click(function(event){
$(alert($('#demo').text())
});
});