JQuery find <br/ "> tags in the div and add additional <br/"> to each
2 answers
Try something like this:
$('div.post br').each(function() { $(this).after($(document.createElement('br'))); }); But as a tip, you should avoid using the <br /> tags in the <div> . Formatting must be done using CSS, for example, you can add margin-after to your div to have the same result.
0