0
Can we add break line in Strings -JavaScript Dom Event-
I want to add new line in strings on tag div I'm trying using \n on textarea and pre tag and it worked But i wanna use div and not worked can you help me? Full here https://code.sololearn.com/W04yLUxaHE3p/?ref=app
1 Answer
+ 3
if you try adding a <br> directly without the animation it will work fine.
my guess is, that is happening because you're not adding full <br> at a time, you're adding part by part as you want typing animation.
https://code.sololearn.com/WqrEqAeWwcW8/?ref=app