Django: Select option in template
问题 In my Django template, I am using the list of objects in a drop down menu. I am processing it based on the selection. The HTML Template: <select id="org" name="org_list" onChange="redirectUrl()"> <option value="" selected="selected">---SELECT---</option> {% for org in organisation %} <option value="{{org.id}}">{{org.name|capfirst}}</option> {% endfor %} </select> The problem is that when I am selecting the value from the drop down menu, I am getting the contents which belong to the selection.