2
votes
Can' get alert() to work in Survey
Looks like the js is verifying that !document.querySelector('#name').value is not blank. And actually, it's likely never blank. Whyzat? Because it has a default value of "Name" by definition:
<...
2
votes
1
vote
Accepted
My jinja not working like it should pset6 survey
You need to pass SHEET to the template in your render_template call.
1
vote
Accepted
survey : ValueError: too many values to unpack (expected 4) in template sheet.html
Your answers is going to be a list of each list of answers (ie, a list of rows). The actual 'title' of those answers isn't in the file.
You only need to iterate over each line and then iterate over ...
Only top scored, non community-wiki answers of a minimum length are eligible