Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How To Allow Only alphabet ,space and Å Ä Ö & å ä ö
Dr.Ajay Kashyap
Jun 9 2017 4:29 AM
240
Reply
i want allow user to type only alphabet ,space and
Å Ä Ö & å ä ö
the given character in Text Box.
alphabet validation and space is working fine but what i have to do for this character
Å Ä Ö & å ä ö
Followning is code :-
<script language="javscript" type="text/javascript">
function ValidateAlpha(evt) {
debugger;
evt = (evt) ? evt : event;
var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));
if (charCode != 13 && charCode > 31 && (charCode < 37 || charCode > 40) && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122) && (charCode == 196 || charCode == 142))
{
swal("Enter Only Character");
return false;
}
return true;
}
</script>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
collections of data tables from controller to view?
adding reference to mvc project