I\'m having trouble wrapping my head around what should be a simple solution. I want to replace text within a label tag, without affecting the other \'siblings\', if they ex
Why not simply do an entire replace using regex?
$(".myFieldsetClass label:contains('Some Label ')") .each(function() { $(this).html($(this).html().replace(/Some Label ./, "Some Label")); });