angular.js - Use jquery to get the selected value of select in angular's controller. If the value of select is changed, the value obtained remains unchanged.
我想大声告诉你
我想大声告诉你 2017-05-15 16:50:19
0
1
653

The html code is as follows:

<select name="repeat-freq">
    <option value="1" selected>每周重复</option>
    <option value="2">两周重复</option>
    <option value="3">每月重复</option>
</select>

This is how the selected value is selected in the controller:

$('select[name="repeat-freq"]').val()

The result is that the value obtained is always "1", and other items in the selected option are still 1. I can't figure out why. Please give me an answer.

我想大声告诉你
我想大声告诉你

reply all(1)
洪涛

http://stackoverflow.com/questions/10659097/jquery-get-selected-option-from-dropdown

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template