jQuery function working Internet Explorer not in Chrome or FF
<p>I have function which gets the table ID and copies the content to clipboard. The function is working properly in IE but not in Chrome or FF. </p>

<p>Please could any one help. Thanks! </p>

<pre><code>function clipBoard(tbID) {
    var div = document.getElementById(tbID);
    div.contentEditable = 'true';
    var controlRange;
    if (document.body.createControlRange) {
        controlRange = document.body.createControlRange();
        controlRange.addElement(div);
        controlRange.execCommand('Copy');
    }
   div.contentEditable = 'false';
} 
</code></pre>
