How can I fix this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I fix this?

https://code.sololearn.com/W3A1bMqBEs6Z/?ref=app It was meant to copy text from field 1 to field 2 when clicked on the button!

26th Sep 2017, 6:27 AM
B.D
B.D - avatar
4 Answers
+ 1
Here's the fix, all I did to your code was remove the line breaks. Compare this fix with what you did. https://code.sololearn.com/WOhfBACWq6Xo/?ref=app
26th Sep 2017, 6:57 AM
Ghauth Christians
Ghauth Christians - avatar
+ 2
Remove the line breaks you have in your tags. Example (HTML): //This is a tag with line breaks <input type="text" /> //This is a tag without line breaks <input type="text"/>
26th Sep 2017, 6:51 AM
Ghauth Christians
Ghauth Christians - avatar
+ 2
Thanks
26th Sep 2017, 6:58 AM
B.D
B.D - avatar
+ 1
Still it doesn't work properly!
26th Sep 2017, 6:55 AM
B.D
B.D - avatar