HI WELCOME TO KANSIRIS

How to validate html textbox not to allow special characters and space?

Leave a Comment
$(document).ready(function () {
    $("#sub").click(function(){
var fn = $("#folderName").val();
    var regex = /^[0-9a-zA-Z\_]+$/
    alert(regex.test(fn));
});
});

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.