Is it possible to prepend or append additional text to an input value?
I am looking to customize the display of a value without altering the actual value itself. For instance, if the value is 1000, I want it to still return 1000 when accessed.
<input id="myInput" type="text" value="1000">
What is the best way to add the text Foo
before or Bar
after the number 1000 without changing the value?
The text "Foo" and "Bar" should be static and not editable by the user.