Hey there, what if I have HTML elements structured like this:
<div>
<div>Name</div>
<div><input type="text" class="check">
<div>Age</div>
<div><input type="number" class="check"></div>
<div>address1</div>
<div><input type="text"></div>
</div>
I am looking to update the previous elements of those with the .check CSS property, for example changing Name to *Name with red color.
Can this be achieved through CSS alone, or would JavaScript need to be involved?
Open to any ideas or suggestions. Thank you!