0

I have a Gravity Form with a datepicker field. I'm trying to attach some code to the datepicker field onchange:

 $(window).bind('load', function() {
     alert('test');
     $("#input_7_25").on('change', function() {
          alert('testing date');
     });
  });

However, I placed this code in the footer of the website. When I load the page with the form, I get the first alert ("test") but when I choose a date in the datepicker (has id of input_7_25) and that date is added to the input field, nothing happens ... the onchange event is not firing, and I get no alert for "testing date" - no errors in the console, nothing pointing to why this wouldn't work.

Are there any methods I could use to determine why the onchange event is not firing?

Alex Douglas
  • 534
  • 1
  • 8
  • 21
  • Protip: Use console logs and your browser's developer tools console rather than alerts. Alerts require you to take action every time, which gets very annoying. – isherwood Mar 10 '23 at 14:07

0 Answers0