Home > Back-end >  Cursor blink in second line of textarea
Cursor blink in second line of textarea

Time:05-05

When a button is clicked automatically a timestamp will be added in textarea 1st line.I want the cursor in textarea to blink in second line but for me but it's blinking at the start of the timestamps.How to do this? I am developing in angular and typescript

CodePudding user response:

document.getElementById("txt").value = "yourtext\n";

  • Related