I've got the following situation: I'm storing dates in text-inputs and above those, the min- and maxdates are displayed. It is possible to add and remove additional inputs. The dates are stored in an array of objects [{id: 1, val: '15.3.13'}, {id: 2, val: '1.4.13'}...]
The onchange-event for these inputs now checks the array and calculates the minimum and maximum dates for display on the top of the page. But if I add an input, make it the minimum/maximum date and then remove it, the onchange-event isn't called.
Is there some kind of onremove-event for jQuery or do I have to work my way around and call everything manually?
(The scenario above is a highly simplified version of the real problem, just to get the idea of what I'm doing. Please don't just say "Why don't you call the onchange-method in the onclick-method of the button that removes the inputs?", because it's just not that easy ;-))