I am trying to capture when the value of a text input field changes. I use:
$("input[name=color]").change(function(){
This works if I type a new value directly. However, the value of the input field is changed using jquery. There are several such fields, and I need to know when they changed. Is there any way to detect this change?
Sorry, I was not clear. I am not the one who changes the meaning. This is an addon that I would prefer not to change if I need to transfer it to another project.
bypass
Okay, so you cannot do what I wanted to do, but here is the work. I just took a break and changed the event changeto event each.
setInterval(function(){
$("input[name=color]").each(function(){ my code })
},100);
James source
share