I was using angularjs xeditable typeahead. Tried to updatae an input field based on another input field value but was not able to. I updated the $scope but xeditable did not bind the value to the html input field.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I managed to solve my problem by using e-typeahead-on-select to call function when user made a selection and updating the input field using angular.element
e-typeahead-on-select="onSelectAction($item, $model, $label)"
angular.element($('input[name="myInputName'"]')).val("myInputValue")