<!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>From this code snippet you will learn how to replace special character from string in Kendo UI.
