I am trying to split chain input value and want to add <br/> after every end of ,
<input type="text" class="title" />
<a class="into"></a>
$('.title').on('keyup change', function() {
$('.into').text($(this).val());
});
Output :
demo1,demo2,
Want to output :
demo1
demo2