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
  • 14,163
  • 30
  • 110
  • 141

0 Answers0