Example,
<td id="example">
Something is inside here.
<button id="paymentBtn">pay</button>
</td>
What i want to do is, "only emtpy"
before payment button and insert a new thing like this,
<td id="example">
Deleted old one, and inserted new one.
<button id="paymentBtn">pay</button>
</td>
I know i can use
$("#paymentBtn").before("inserted new one");
but how can i empty?
If i empty example. it blows everything and
$("#paymentBtn").before().empty();
This doesn't work :(