I have a dropdown menu, that consists of elements from a db table:
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown">
Production lines
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
{% for line in lines %}
<option>{{ line[0] }}</option>
{% endfor %}
</ul>
</li>
I need to make it so that when the user clicks an element, the value of the chosen element is submitted.
Currently I only know how submit something through forms with a submit button. Would appreciate if someone listed out some approaches on how know to know what the user has chosen or inputed.