Question : JS - How do I parse a colon delimited string into an Array?

JS - How do I parse a colon delimited string into an Array?

  var bdlist = '36:24:12:4'; -- this actually comes from database

???????????

  for ( var j=0;j< bdlist.length; j++ ){
      alert(bdlist[j]);
  }

Answer : JS - How do I parse a colon delimited string into an Array?

use : bdlist = bdlist.split(":")
Random Solutions  
 
programming4us programming4us