示例代码:

<h3>视频标题:
<select >
{% for item in ress %}
<option value="{{ item.id }}" >{{ item.leibie }}</option>
{% endfor %}
</select></h3>
 
 
script中获取选中得值
var type_id = $("#l_id option:selected").val()
 

相关文章: