Hello, I would like to make a method where the user clicks on the input and always direct to the last character typed, any tips?
Hello, I would like to make a method where the user clicks on the input and always direct to the last character typed, any tips?
Hello,
Based on this question of stackEN, you can do as the code below.
(function($){
$.fn.setCursorToTextEnd = function() {
var $initialVal = this.val();
this.val($initialVal);
};
})(jQuery);
$('#meuTXT').setCursorToTextEnd();