I am trying to add non-editable text after the cursor to the text box / input box to achieve the following:
1) The text before the cursor is edited 2) The text after the cursor is not edited and moves right / left when the text on the left is added / deleted
ENTRANCE FIELD: [editabletexthere {cursorhere} un-editabletexthere]
Here is the code for my input window:
<input id="edit_input" type="text" autocapitalize="off" autocorrect="off" spellcheck="false" autofocus onfocus="this.value = this.value;" value="editabletext" style="width:100%;"></input>
I feel that the input values should fit within the range, and for the second range, just style with contenteditable = false ;. I would also like to stylize non-editable text to a different color. Any help is appreciated. Thank.
source
share