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
document.getElementById("txt").value = "yourtext\n";
Answered By – vahid asghari
Answer Checked By – Katrina (AngularFixing Volunteer)