I have a simple input field that looks like:
<input class="input" id="name" type="text" name="name" value="* Your Name" onfocus="if (this.value == '* Your Name') {this.value = '';}" onblur="if (this.value == '') {this.value = '* Your Name';}">
I would like to have the * Your Name in two colours. Something like:
<style>
.input {color: black}
.input span {color: red}
</style>
<input class="input" value="<span>*</span> Your Name">
Clearly the above code won't work. But I am just wondering what the best approach would be to solve this dilemma. I genuinely don't even know if it's possible.