Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js require pasword to have special charaacter

analyze(event) {
    if(strongRegex.test(event.target.value)) {
        this.setState({ backgroundColor: "#0F9D58" });
    } else if(mediumRegex.test(event.target.value)) {
        this.setState({ backgroundColor: "#F4B400" });
    } else {
        this.setState({ backgroundColor: "#DB4437" });
    }
}
Source by www.thepolyglotdeveloper.com #
 
PREVIOUS NEXT
Tagged: #react #js #require #pasword #special #charaacter
ADD COMMENT
Topic
Name
8+5 =