10
rated 0 times
[
14]
[
4]
/ answers: 1 / hits: 67879
/ 9 Years ago, tue, november 24, 2015, 12:00:00
I want to fire the JQuery change
event when the input text is changed programmatically, for example like this:
$(input).change(function(){
console.log(Input text changed!);
});
$(input).val(A);
<script src=https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js></script>
<input type='text' />
But it doesn't work. How can I make this work?
More From » jquery