X
Publisher: Sigit purnomo kangsigit.com@gmail.com

How to Remove ALL BR and Replace to One BR Tags With jQuery

Eliminate some and replace BR tags into a single tab alone was unlikely to be done. But you can try some jQuery script to solve this problem.
$("#nameDIV br:first").remove();
$("#nameDIV br:first").remove();
$("br:first").remove();
$("br:first").remove();
$("#nameDIV br:lt(2)").remove();
$("br:lt(2)").remove();
$('br').each(function() {
    if ($(this).next().is('br')) {
        $(this).next().remove();
    }
});
$('#nameDIV br').each(function() {
    if ($(this).next().is('br')) {
        $(this).next().remove();
    }
});
For example, click here
Advertisement

no image
Add Comments
0 Comments
Click Here to Add Comments

No Comment