We all know that using val() will not result in a change event, so we also use .trigger('change') for val() .
But the problem is that someone writes val() did't with trigger() , and this is an external file that I cannot edit it.
So, how can I detect a change in value through some code, as shown below:
$('.elem').on('change', function(){
source share