expand a date picker when an action is preformed

I am trying to create a date “range” option for my website. Specifically I am trying to allow people to choose a range of dates. Wix does not have a date range calender element that I know of so I am accomplishing this with two seperate date picker dropdowns.

The first represents the starting date and the second represents the ending date. I would like to make it so the end date date picker expands when a user selects a start date from the first date picker. I have been looking through the datepicker documentation, but I can not see a way to do this.

Can anybody think of a way to add this functionality?

Thank you!

DatePicker - Velo API Reference - Wix.com

It also looks like the javascript .click() function does not work for wix elements. HTMLElement.click() - Web APIs | MDN (mozilla.org)