+ 1

How to make it when i click add and submit it will run out a table.

https://code.sololearn.com/WJzn8gzsOkQs/?ref=app

30th Sep 2020, 8:46 AM
Kyrene
2 Answers
+ 2
Problem is with your current line 20: var table="<table border='1' cellspacing='0' align='center'><tr><td>Date</td><td>Day</td><td>Temperature</td><td>Weather</td><td colspan = "2"></td></tr>" The " of "2" closes the string. so error says unexpected number (referring to the 2 after "). solution is to use '2'
30th Sep 2020, 9:15 AM
Gordon
Gordon - avatar
0
Thanks a lot!
30th Sep 2020, 9:18 AM
Kyrene