Issue
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
Solution
document.getElementById("txt").value = "yourtext\n";
Answered By - vahid asghari
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.