How can you use jQuery to get rid of text between the <label>
tags?
I would need to keep the <input>
within the <label>
but get rid of the "Clinical Vendor" text.
<label for="form">
<input type="checkbox" class="ar" name="b" value="Clinical Vendor" id="form">Clinical Vendor
</label>
I have tried jQuery('label').text('');
but that seems to get rid of the input
tag as well.
EDIT: Everyone came up with pretty much the same solution using nodes. TIL! Thanks, everybody!