Personal I have the following ajax call:
$(".sec-tags").html(res.data.tags);
It is returning the call from the server, however the call is coming as follows:
tags: "coelho,teste,gato"
Everything is coming within a single string separated by commas. How do I separate these words and put each one inside an html tag:
<span class="tags">minha tag aqui</span>
My HTML is:
<div class="col-md-6">
<div class="sec-tags">
<span class="tags"></span>
</div>
</div>