tags:

views:

29

answers:

0

I have created a input box that takes only digits and low case alphabets. I used this

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

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