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

javascript - easyui textbox binding onchange event cannot get the latest text box value
怪我咯
怪我咯 2017-07-05 10:42:53
0
1
1616
<input id="id1" class="easyui-textbox" onchange="fun()">
function fun() {
    alert($("#id1").textbox("getText"));
}

The input value is not obtained after the input value in the input box loses focus

怪我咯
怪我咯

走同樣的路,發(fā)現(xiàn)不同的人生

reply all(1)
迷茫

The change monitoring event of

EasyUI is not written directly in the onchange event of input. The onclick event of input only monitors the operation of HTML itself, which may not be effective for EasyUI binding. The correct approach is to When binding the EasyUI control, write it in the control configuration:

$('#id1').textbox({  
    onChange: function(value) {
        alert($("#id1").textbox("getValue"));
    }
});
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template