How To Split String Containing Comma Using Span Tag
There is a string containing tags separated by comma:
).html($('.tags').html().split(', ').map(function(el) {return '<span>' + el + '</span>'}))
Fiddle here
Fiddle here
You may like these posts
Post a Comment for "How To Split String Containing Comma Using Span Tag"