JSFiddle - React, Tailwind, and code Playground
by Emerson Marini
HTML
<label class="option" for="edit-attributes-21-33">
<input type="radio" id="edit-attributes-21-33" name="attributes[21]" value="33" checked="checked" class="form-radio" />4 oz, +$15.00
</label>
JavaScript
$(function () {
$('label.option').each(function () {
var label = $(this);
var input = $('input.form-radio', this);
var text = label.text();
label.empty();
text = text.replace(/\+/g, "");
label.append(input).append(text);
});
});