*

arun008

  • ***
  • 46 posts
Prevent user from entering certain word in textarea “SEX”



var input = document.getElementById("domain");
input.onkeyup = function() {
    input.value = input.value.replace(/\.(com|net)/,"*");
}

*

MB Themes

Re: Prevent user from entering certain words in title and description
« Reply #1 on: March 17, 2018, 11:29:41 AM »
Is it functional?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

arun008

  • ***
  • 46 posts
Re: Prevent user from entering certain words in title and description
« Reply #2 on: March 17, 2018, 12:45:32 PM »
Yes

*

arun008

  • ***
  • 46 posts
Re: Prevent user from entering certain words in title and description
« Reply #3 on: March 17, 2018, 12:52:24 PM »
How to remove “.com and .net ”

Demo link http://jsfiddle.net/kLTq5/1/

*

MB Themes

Re: Prevent user from entering certain words in title and description
« Reply #4 on: March 17, 2018, 02:57:29 PM »
Look on code... I am not good with regex.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots