Applying restrictions on prompt box
<p>I'm taking user input using the <code>prompt</code> box. I want to apply some restrictions on the prompt box so that user can't input anything other than "digits" and the input length should be just one character. Is there any way to do this?</p>
