How to change the display month and year in javascript calander on user search

i have a php website where i used a javascript calander to display events on particular date, everything is working fine, now i have given a search box for user to serch and display the month and year he wants:

<select class="form-select" id="basicSelect" name="month">
                                                      <option value="01">January</option>
                                                      <option value="02">February</option>
                                                      <option value="03">March</option>
                                                      <option value="04">April</option>
                                                      <option value="05">May</option>
                                                      <option value="06">June</option>
                                                      <option value="07">July</option>
                                                      <option value="08">August</option>
                                                      <option value="09">September</option>
                                                      <option value="10">October</option>
                                                      <option value="11">November</option>
                                                      <option value="12">December</option>


                                                  </select>

  <select class="form-select" id="basicSelect" name="year">
                                                      <option value="2022">2022</option>
                                                      <option value="2021">2021</option>
                                                      <option value="2020">2020</option>
                                                      <option value="2019">2019</option>
                                                      <option value="2018">2018</option>
                                                      <option value="2017">2017</option>
                                                      <option value="2016">2016</option>
                                                      <option value="2015">2015</option>
                                                      <option value="2014">2014</option>
                                                      <option value="2013">2013</option>
                                                      <option value="2012">2012</option>


                                                  </select>

the calander iused was from here https://codepen.io/romswellparian/pen/raPObG , as i am new with javascript and jquery can anyone please tell me how to accomplish this, thanks in advance