How to Allow text box only for alphabets using Jquery If you want to make the text box allow only alphabets (a-z) using Jquery. it is easy to do so... HTML Code: <input name="Texting" onkeyup="this.value=this.value.replace(/[^a-z]/g,'');"> HTML Code: <input name="First Name" type="text" id="fn" class="textbox" onkeyup="this.value=this.value.replace(/[^a-z,A-Z,.]/g,'');"/> HTML Code: <input name="lorem" class="alphaonly"> |
All times are GMT +5. The time now is 01:11 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.