<script type="text/javascript">
$(function () {
$('#A').textbox('setValue', 10);
$('#C').textbox('setValue', $('#A').textbox('getValue'));
function change(n, o, id) { alert(o); $('#C').textbox('setValue', $('#A').textbox('getValue') - this.value); }
function change1(n, o, id) { $('#C').textbox('setValue', this.value - $('#B').textbox('getValue')); }
$('#B').textbox('textbox').bind({ input: change, propertychange: change, value: 'A' });
$('#A').textbox('textbox').bind({ input: change1, propertychange: change1, value: 'A' });
});
</script>
</head>
<body>
<input class="easyui-textbox" id="A" style="width: 50px" />总
<input class="easyui-textbox" id="B" style="width: 50px" />减
<input class="easyui-textbox" id="C" style="width: 50px" />余
</body>
</html>
easyui textbox 值改变事件
最新推荐文章于 2025-05-18 22:33:01 发布