Answer the question
In order to leave comments, you need to log in
How to track the change of the textarea, which is changed by js, not by the user?
There is a code:
$($('.modal-dialog'))
.find('[name="id"]')
.change(function (){
console.log('oke')
renderModalCompanies()
})
<input type="hidden" name="id" id="id" value="">
Answer the question
In order to leave comments, you need to log in
Events will only be triggered by user actions through the UI. When changing the value of value from the code, the events do not fire.
1. You can reassign the property value
of the desired input, and artificially create an event in the setter when the value changes. Code and idea from here .
2. When changing the value, in the same section of code, you can also create an event on the element.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question