[Solved] Remove into tags jQuery


You you want to cut/paste, you can access the text node and then append it to the div like

$('#try').append($('small br').prop('nextSibling'))
small {
  color: red;
}
div {
  color: green;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<small>Price for one. <br> Price for two.</small>
<div id="try"></div>

6

solved Remove into tags jQuery