I have 2 text field look like this :
HTML :
<input type="text" id="input1" onchange="doSomething();" disabled/>
<input type="text" id="input2"/>
JavaScript :
function doSomething(){
alert('Changed!');
}
$("#input2").change(function(){
$("#input1").val(this.val());
});
My Problem are :
When i change value of input2 , i hope input1 will do doSomething cause the value has changed. But my problem, it's not wokring for me right now. Can anyone explain why and how to fix it?