javascript csv validation

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-03-25T07:06:49Z Indexed on 2010/03/25 7:13 UTC
Read the original article Hit count: 985

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.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events