I am having a select drop down, and I am adding options dynamically through Jquery append on it, and I want to associate all data in the dropdown, I mean all options selected into angular JS model.
I am having select as
<select multiple='multiple' ng-model="attrId" name='attribute' id='hiddenRemoteChoicePossibleAnswers' ></select>
and I am adding options on this select through some other Jquery dynamically after few server calls:
$('#hiddenRemoteChoicePossibleAnswers').append("<option selected='selected' value='"+optionValue+"'> "+optionValue+" </option>");
and I want attrId inside ng-modal to be changed on append, but it ain't updating at all, for that I have to select all the options manually, I have to associate all values in the options in the model.
Any help will be useful.
Thanks in advance.