Trouble using the For Statement, with Input and Tables
- August 27, 2021
- 2 replies
- 201 views
Hi there,
I'm having a bit of trouble with a few elements within my Dreamweaver site file code.
I am aiming to create a website where prompts pop up, asking for the user for feedback. The feedback that the user gives will then be planted within a Javascript Table, with 3 columns and 6 rows (therefore the prompt must pop up 5 times for input). If the user does not enter anything into the prompt, the table must display a message.
Unfortunately, my 'For' statement, prompts and table are not cooperating. I've been trying to figure it out all day but have had no choice but to turn to the forum. My questions are posted below;
1. How do get input from the prompts to show up within the table that I have designed? Is there a reason why my 'For' statement is not currently working?
2. In the past I have practiced using the prompt, and when 'cancelling', it typically just places 'null' into my table. Is there a way I can replace the word/result 'null' with a phrase saying the user was unsuccessful?
Thank you for all of your help, in advance.
(Photos attached below)
