angularjs xeditable typeahead - update input field based on another input field value

冷暖自知 提交于 2019-12-24 08:29:50

问题


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")



来源:https://stackoverflow.com/questions/25757547/angularjs-xeditable-typeahead-update-input-field-based-on-another-input-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!