Answer the question
In order to leave comments, you need to log in
How to move the cursor to the end of input?
Friends, can you tell me how to move the cursor to the end of the line after something has been added to the input? I didn’t find anything on Google (I insert emoticons, but not through Unicode, but stupidly img-hami, in this way,
//Смайлы
$('body').on('click', '.smile', function () {
var img = $(this).attr('src');
$('.redactor-editor').append('<img class="smile_in_text" src="' + img + '" >');
});
Answer the question
In order to leave comments, you need to log in
setSelectionRange selects some area, and then you need to make it collapse ().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question