Change from setInterval to change events
Thank you for sharing!
I know that the setInterval solution works, but I just believe that a approach where you listen for changes would perhaps be a better approach.
I agree with this. Maybe make it an option to have it both ways?
I created a fork and pull request for a change that implements this. It's a two liner in coffee.
Listening to changes quite hard to implement because of compatibility with other plugins like chosen.js and select2 for example. Simple approach to listen to change event works from time to time if you are using custom form elements.
But if you implement it as an option I will merge it with pleasure.