<!--快速获取select选中值--> <select id = 'tagName'></select> var tag = $("#tagName option:selected"); msg = tag.text(); alert(msg);
<!--快速获取select选中值--> <select id = 'tagName'></select> var tag = $("#tagName option:selected"); msg = tag.text(); alert(msg);
转载于:https://www.cnblogs.com/haohao111/p/8459612.html