我想根据之前的select tag选项更改用户选择的select标签。所以第二个下拉菜单(select tag)将取决于前一个。
Python烧瓶代码
for (var i:int = 0; i < feathers.length; i++) {
var feather:DisplayObject = DisplayObject(feathers[i]);
feather.parent.removeChild(feather);
}
HTML:
@app.route('/signup', methods = ['POST'])
def signup():
make = request.form['make']
model= request.form['model']
print(model)
print(make)
return redirect('/')
答案 0 :(得分:0)
我认为您可以使用jquery动态更改第二个dom。也许如下:
var make = $('select[name="make"]').val()
$('select[name="model"]').html('<option value="' + make + '">' + make + '</option>')