JQuery - Check for bad words on a submit form?

Does anyone know of a good jQuery solution for verifying abusive words when submitting a form?

Basically, I have a form that submits to Twitter, after successfully passing the profanity check, it will be submitted via ajax. I know how to do this in PHP (for users who do not support javascript), I made a foreach loop through an array of predefined bad words and checked them against what was sent.

How do I do a similar thing with jQuery?

thank

+3
source share
1 answer

, . , PHP script / , PHP . , Javascript - ( ).

+5

Source: https://habr.com/ru/post/1742804/


All Articles