I want to enter new line after every founded comma in my textarea.
<textarea id="update_destination" placeholder="Podpiete adresy" class="form-control"></textarea>
and there is how I fill my textarea
$("#update_destination").val(alias.destination);
alias is a object.
Now in my textarea I got something like xxx, yyy, zzz I want to have:
xxx
yyy
zzz