Skip to content
Advertisement

Any values taken from a Listbox return as “none” in bottle

I have a website in which you take values inputted from a website (using bottle) and add them to a database (using sqlalchemy). The data gathered for “Status” needs very specific strings otherwise it will fail so I thought of using a Listbox in order to avoid a miss input. When debugging whenever I try to use any type of Listbox however the result always returns “none” How can I fix this?

Relevant code:

JavaScript

Relevent HTML:

JavaScript

This HTML for other inputs like this one below does work. It’s just HTML above that doesn’t seem to take any inputs:

JavaScript

Advertisement

Answer

You have name in wrong place – it has to be in <select>

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement