Javascript Function to enter only alphabets on keypress
问题 I want to enter only character values inside a <textarea> and numeric values in another. I have been able to make a JavaScript function which only allows numeric values to be entered in the <textarea> using onkeypress . This works in Firefox and Chrome. For alphabets I am creating another JavaScript function using windows.event property. Only problem is this works only in Chrome and not in Firefox. I want to know how to allow only alphabets to be entered using onkeypress event as used for