I dont have access to the following HTML its displayed dynamically using some External JS.
<td class="quantitybox">
<span class="qty">Quantity</span>
<br style="clear:both;">
:<input type="text" value="1" onkeydown="javascript:QtyEnabledAddToCart();" maxlength="8" size="3" name="QTY.1121309" class="v65-productdetail-cartqty">
</td>
I want that : after to be Removed/Deleted using Jquery, but i am not getting what handler should be used shall i apply a class to <br> dynamically and do something to it
The jQuery way, without
regex:Or simply change the textnode to an empty string:
If you have multiple textnode with colons-
:that you want to remove:If you want to do it with
regexand aware of it’s risks:Note that your HTML code in the question was edited, so I added the white space to the regex so it will work with the initial markup as well….