示例代碼:
<h3>視頻標題:
<select id="l_id">
{% for item in ress %}
<option value="{{ item.id }}" >{{ item.leibie }}</option>
{% endfor %}
</select></h3>
script中獲取選中得值
var type_id = $("#l_id option:selected").val()