angularjs xeditable预输入 - 更新输入字段根据另一个输入字段值 [英] angularjs xeditable typeahead - update input field based on another input field value

查看:262
本文介绍了angularjs xeditable预输入 - 更新输入字段根据另一个输入字段值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是用angularjs xeditable预输入。试图UPDATAE基于另一个输入字段值的输入字段,但无法。我更新了$范围,但xeditable没有绑定值到HTML输入字段。

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.

推荐答案

我设法通过使用电子预输入上,选择呼叫功能时,用户做出的选择和更新输入字段用来解决我的问题angular.element

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

电子预输入上,选择=onSelectAction($项目,$模式,$标签)

e-typeahead-on-select="onSelectAction($item, $model, $label)"

angular.element($('输入[名称=myInputName']'))。VAL(myInputValue)

angular.element($('input[name="myInputName'"]')).val("myInputValue")

这篇关于angularjs xeditable预输入 - 更新输入字段根据另一个输入字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆