I have a Html code like this:
<div class="form-group row">
<label id="lb_size" class="col-lg-3 col-form-label">
<span class="must-have">****</span>
Size
</label>
</div>
I want to using JQuery get purl text "Size" only .
I Try:
$("#lb_size").text()
result: "****Size"
Then I try:
$("#lb_size")[0].lastChild
result: " Size "
Finally, I use this code:
$($("#lb_size")[0].lastChild).text()
result: "Size"
It's work but it look dirty.
Have a better way to do this ?