Here is the code for selecting a div content through javascript with single click of button or mouse click, just copy and paste javascript code given bellow and call the function selectText at the button click and pass the parameter divid .
Programming Tutorials And Source Code - ASP.NET,C#.NET,MVC,JQuery,JavaScript,SQL Server,Angular,WCF examples