How to I re-enable the ability to select an element in ie and firefox?
<p>I have used the following script to disable the highlighting of script on a table...</p>

<pre><code>function disableSelection(target) {
    if (typeof target.onselectstart != "undefined") //IE route
        target.onselectstart = function () { return false; };
    else if (typeof target.style.MozUserSelect != "undefined") //Firefox route
        target.style.MozUserSelect = "none";
    else //All other route (ie: Opera)
        target.onmousedown = function () { return false; };
    target.style.cursor = "default";
}
</code></pre>

<p>I want to be able to reverse the effects of the above method so that when a user clicks on an input in a td they can select all the text using the jQuery.select() method.</p>

<p>I dont really understand how to reverse the effects when I tried...</p>

<pre><code>function enableSelection(target) {
    if (typeof target.onselectstart != "undefined") //IE route
        target.onselectstart = function () { return true; };
    else if (typeof target.style.MozUserSelect != "undefined") //Firefox route
        target.style.MozUserSelect = "none";
    else //All other route (ie: Opera)
        target.onmousedown = function () { return false; };
    target.style.cursor = "default";
}
</code></pre>

<p>It doesnt work, I get object not found errors in IE. Hope someone can help this is for an important bit of work that I have to get done for the weekend.</p>
