Remove special characters in string using Javascript

How to remove the special characters from string using javascript?

Solution

The symbols desired to be removed can be placed in following regex text.

var str = document.getElementById('Title').value.replace(/[`~!@@#$%^&*()-_|+=?;:'",.<>{}[]\/]/gi, '');

More Questions