TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
JQuery to Avoid Special Character from String in Kendo UI
Gowtham K
Jul 02
2015
Code
4.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<link rel=
"stylesheet"
href=
"http://cdn.kendostatic.com/2014.3.1316/styles/kendo.common.min.css"
/>
<link rel=
"stylesheet"
href=
"http://cdn.kendostatic.com/2014.3.1316/styles/kendo.default.min.css"
/>
<link rel=
"stylesheet"
href=
"http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.min.css"
/>
<link rel=
"stylesheet"
href=
"http://cdn.kendostatic.com/2014.3.1316/styles/kendo.dataviz.default.min.css"
/>
<script src=
"http://cdn.kendostatic.com/2014.3.1316/js/jquery.min.js"
></script>
<script src=
"http://cdn.kendostatic.com/2014.3.1316/js/kendo.all.min.js"
></script>
<script src=
"http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"
></script>
<title> String Replace</title>
</head>
<body>
<div>
Enter String:
<input type=
"text"
id=
"txt_msg"
class
=
"k-textbox"
/>
<br />
<input
class
=
"k-button"
type=
"button"
id=
"btnRemove"
value=
"Remove Special character"
onclick=
"SpecialFunction()"
/>
</div>
<script type=
"text/javascript"
>
function SpecialFunction() {
var Input=$(
"#txt_msg"
).val()
alert((Input.replace(/[^a-zA-Z0-9-. ]/g,
""
)));
}
</script>
</body>
</html>
Jquery
Kendo UI