<!DOCTYPE html>
<html>
<head>
    <title>How to split string to array by comma using jquery? - ItSolutionStuff.com</title>
</head>
<body>
  
<script type="text/javascript">
   
    var myString = "A,B,C,C,D,E,F,G,H";
   
    console.log(myString.split(','));    
   
</script>
</body>
</html>