When one value of native js input changes, automatically modify the value of another input? TKS
学习ing2017-06-28 09:30:47
You can use input and chagne, probably the timing of triggering is different http://jsrun.net/7UYKp
When using input in IE, propertychange must be added to avoid incompatibility. Then there is another way is data binding. The general solution is to have an object with getter and setter methods, and then change the object when inputting, trigger the setter and then change all the associated ones.
某草草2017-06-28 09:30:47
Bind the onChange event to the input, and modify the value of another input in the onChange event
某草草2017-06-28 09:30:47
Just add dom to the onchange function. Just define it yourself for specific needs
曾经蜡笔没有小新2017-06-28 09:30:47
$('#input1').bind('input propertychange', function() {
$('#input2').val(this.value);
});