Allow select operation on input
<p>I have created a input box that takes only digits and low case alphabets. I used this </p>

<pre><code>if($("#txt").value.match(/[^0-9a-z]/)  
// replace characters not needed
</code></pre>

<p>However now peopl cannot select the text. How to allow text selection? or Control+A?</p>
