how is it possible to trigger change on a select tag without wrapping .val() or doing something like this
$('#id').val('...').trigger('change');
Maybe there is a event like the following that could make the job
$(element).bind('DOMSubtreeModified', function() {
// Do something
});
Thanks for any suggestions.
Changing the value in javascript does not fire any event. You will need to do as you have posted and call
triggerorchange().The only other solution I can think of is some sort of hacky solution of using
setTimeoutorsetIntervalto check if the value has changed on some regular interval. But this just seems like an awful idea.