1.html部分
2js部分
var select_type = $('#select_type option:selected') .val();
这样便能获取选中状态下的值
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/207542.html原文链接:https://javaforall.net
js获取select框选中的值1 html 部分 selectname select type id select type optionvalue getGift getGift optionvalue selectGift selectGift optionvalue randGame randGame lt optionvalue randGame optionvalue selectGift optionvalue getGift selectname select type id select type
1.html部分
2js部分
var select_type = $('#select_type option:selected') .val();
这样便能获取选中状态下的值
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/207542.html原文链接:https://javaforall.net