Is there a function in javascript equivalent to php strchr? Please help me. thank.
You should try indexOf .