Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
JQuery to Avoid Special Character from String in Kendo UI
WhatsApp
Gowtham K
Jul 02
2015
4.9
k
0
0
<!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
Up Next
JQuery to Avoid Special Character from String in Kendo UI