I have access to a form that I need to modify a labels text. I can only add JS to the page otherwise I'd just change the HTML or even replace the text with CSS.
To make matters worse the label doesn't have an ID or NAME other than it's "for" attribute.
<label for='camper1Grade' class="control-label required">Grade entering, Fall 2020</label>
If I could just edit the CSS I would do this:
<style>
label[for=camper1Grade]:before {content: "Grade completing, Spring 2020";}
label[for=camper1Grade] { font-size: 0px;}
label[for=camper1Grade]:after { content: "*";color: red;}
</style>
But like I mentioned I can't add CSS directly.
I'm a pretty good CSS coder but know very little about JS. I'm sure there is a solution I just can't find a good explanation of how to do this. Thanks in advance to anyone who has an idea.