mohammad qasim

mohammad qasim

  • NA
  • 408
  • 0

find special charated and Replace with '- ' using jqery

Aug 5 2020 7:53 AM
Hi,

having textbox on page where user can input document name using special character like

1) abc%test.
2) abc&test
3) abctest.
4) abc/test
5) abc+test
6) abc(test)
7) abc_test

Solution Required:

I want to change all these special charater with '-' . so it will be like below ( after replace ).
abc-test not abc%test

if any special character not get changed so it should prompt like " invalid character "


Answers (1)