国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - Native js input automatically modifies the value of another input when one value changes
淡淡煙草味
淡淡煙草味 2017-06-28 09:28:47
0
6
1199

When one value of native js input changes, automatically modify the value of another input? TKS

淡淡煙草味
淡淡煙草味

reply all(6)
學(xué)習(xí)ing

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.

某草草

Bind the onChange event to the input, and modify the value of another input in the onChange event

某草草

Just add dom to the onchange function. Just define it yourself for specific needs

代言

Just use onchange

為情所困

Use change event

曾經(jīng)蠟筆沒有小新

$('#input1').bind('input propertychange', function() {

$('#input2').val(this.value);  

});

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template