1

I am having 1 div and I have set conenteditable attribute to true.

Whenever I change the text of that div the cursor goes to beginning of the line.

var tmp = this.innerHTML;

this.innerHTML = tmp+"123";

I do not want the cursor position goes to beginning of the line.

bytecode77
  • 13,209
  • 30
  • 105
  • 134

0 Answers0