I have the following input box:
<input id="address1" class="work" />Address1
<input id="address2" class="work" />Address2
<input style="float: right; margin-bottom:20px" type="submit" id="myBtn" value="Submit" class="btn btn-primary" />
I don't want user to type only digits in the input box. I want them to type both digits and alphabets. If the user only type digits then an error is raised when the user clicks on the submit button.
How can I achieve this?