Is there any way to prepend some text to the value of an input box? This is what I'm trying:
html:
<div class="test">
test
</div>
<input type="text" value="1" />
<input type="text" value="2" />
CSS:
input[value]:before {content:"Number:";}
input[value] {color: blue;}
.test:before {content:"This is a ";}
I can add text to the div and change the color of the input value but it doesn't seem to like adding text to the input value.
If this can't be done with CSS, I would like a JavaScript/jQuery aided solution.