I am faced with a task as of current I am not sure on how to complete. Essentially, is there any way I could go about getting the last x characters of an field to display differently from the rest of the field?
Something to the effect of this, assuming this was a typed input into an <input>
field:
"TheLast6LettersOfThisShouldBeBigger"
That would be the intended effect. The only potential approach I could think of for completing this is to use two separate input fields and always have the last x characters in the second input styled differently. This would, however, provide problems with user interaction (backspacing at the front of the second input field would result in no previous character being deleted).
Any ideas or thoughts?
Update: I forget to mention before, this is intended to be a dynamic thing as the user is typing.