There are multiple event date div.
HTML:
<div class="event-dates">Aug 28</div>
<div class="event-dates">Aug 28</div>
<div class="event-dates">Aug 28</div>
<div class="event-dates">Aug 28</div>
JQuery:
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery(".event-dates").each(function() {
jQuery(this).html(jQuery(this).html().replace(/ /g, '<br />'));
});
});
I want output like first attached image.is it possible to split string and append with html?
OR
Any other way to get such a output?
Expected result as shown in first image
