Alphabet character validation using jquery. Follow the below example code and apply it in your code.
<script type="text/javascript"> var textVal=$('#textId').val(); //textVal is user define variable & textId is the text box ID name var Text_filter=/^(?=.*[a-zA-Z])/; if(!pen_ch_filter.test(textVal)){ alert("Enter at least 1 Alphabet character"); } </script>
Hope it will helpful for you.
Question and answer is powered by AnsPress.io