how to get only two letters as alphabets and remaining as numbers in text area field
<p>I am new to javascript and I couldn't find the exact code for my need.</p>

<p>I want a text field with maxlength="5" which should look like ex:AE456, LM975. i.e., the first two letters ahould be alphabets and next three letters should be numbers.</p>

<p>the text area should accept input according to this pattern only. I don't want any alert. Simply it has to accept whatever typed only in this pattern.
Javascript is preferrable. Any help is greatly appreciable. 
Thanks in advance.</p>
