May-26-2021, 09:16 PM
The easy answer is probably just adding a submit button to the form. onchange() fires repeatedly because that's how the datepicker sets a value. So something as simple as
<button type="submit">Submit</button>
would be enough to let you test it quickly.