I have a datepicker that is setting the value of a textbox. Every time the text in that text box changes, I want to submit the form. Here is a snippet of the code that I thought would achieve this:
$(document).ready(function() {
  watchDateFields();
}
function watchDateFields() {
  $('form .date_field').on('change', function() {
    this.form.submit();
  }
}
The .date_field input gets dynamically set, but for some reason this doesn't fire the change event?
 
     
     
     
    