How to check for comma separated values in a text box and raise an alert if not found.
And there is should be characters in it like A,B,C,D
function validate()
{
//validate text box;
}
<input type="text" id="val" >A,B,C,D</input>
<input type="button" id="save" onclick="validate()">
Thanks.