问题描述
html代码如下:
<select name='repeat-freq'> <option value='1' selected>每周重复</option> <option value='2'>两周重复</option> <option value='3'>每月重复</option></select>
controller中是这样取选中值的:
$(’select[name='repeat-freq']’).val()
结果是,取到的值永远是“1”,选中option中的其他项依然是1,搞不清为什么,求解答。
问题解答
回答1:http://stackoverflow.com/questions/10659097/jquery-get-selected-option-from-dropdown

