allow only numbers and special characters in textbox using javascript
// Numeric Digits & Symbol only (Jquery)
$('#valuepoints').keyup(function () {
if (!this.value.match(/^(\d|-)+$/)) {
this.value = this.value.replace(/[^0-9-]/g, '');
}
});