JavaScript: jQuery not triggering for dynamically created inputs

From The Travis van der Font Wiki
Jump to: navigation, search
$('.datepicker').change(function (event) { /* ... */ }

change to
$('body').on('change', '.datepicker', function (event) { /* ... */ }

Additional Resource(s)