2
Answers

javascript function to check "|" symbol is present or not

Nilesh Avhad

Nilesh Avhad

11y
1.8k
1
My string messege contain the string either this:
var strMessage = "Plcc-failed|Score-passed|bankruptcy-passed|Years in Business
i.e. it contains a " | " symbol in it or this 
var strmsg="fail". 
I need a javascript function to check whether it contains a "fail" msg or " | " symbol.
How to write a javascript function for it.
 
Thanks in advance
Answers (2)