How To Split String Containing Comma Using Span Tag July 28, 2023 Post a Comment There is a string containing tags separated by comma: Dog, Cat, Bird, Pig ).html($('.tags').html().split(', ').map(function(el) {return '<span>' + el + '</span>'})) Copy Fiddle here Share Post a Comment for "How To Split String Containing Comma Using Span Tag"
Post a Comment for "How To Split String Containing Comma Using Span Tag"