By 17/02/2016 15 Comments

How To Validate A Name In JQuery?


<!Doctype html>
<script src=""></script>

$(document).ready(function() {
 $("button").click(function() {
 var user_full_name = $.trim($("#txt_user_full_name").val());
 if(user_full_name != "") {
 if(!user_full_name.match(/^[a-zA-Z ]*$/))
 alert("Only alphabetic characters are allowed!");
 alert("Name is validated.");
 alert("Please enter name!");

 <input type="text" name="txt_user_full_name" id="txt_user_full_name" placeholder="Enter name"> <br>
 <button> Submit </button>

Posted in: HTML, jQuery, Solutions

Leave your valuable Comment

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .