I have the following html that is generated by SiteCore content management:
<input aria-label="Username is required." class="form" id="Username" name="Username" type="text" value="" aria-required="true">
What I would like to do is replace the above with this:
<input aria-label="Email is required." class="form" id="Email" name="Email" type="text" value="" aria-required="true">
How do I do this with jquery or pure javascript?
Ideally, I would like to replace the html as soon as the document has been loaded.