I want to put always the cursor after the last character of the textfield whenever a user attempts to put the cursor in the middle of the textfield value or somewhere. In the other words the cursor should be always after the last character of the textfield value.
Scenario: When the user move the cursor using the arrow keys the cursor is automatically put after the last character.
Another scenario would be when the user move the cursor by clicking somewhere in the text field, again the cursor should be automatically put after the last character.
How can I achieve this using JQuery?