I have a div (modal) to show when a select function is called in JavaScript. I tried many ways but cant get it to work. I am pasting a snippet of my JavaScript (the select function below to help me call my div (form). Right now, I am just prompting the user to enter in JavaScript. Can anyone help me solve this issue. thanks for the help.
here is my code:
select: function(info, start, end, jsEvent) {
  let title = prompt("Event Content:");
  if (title) {
    calendar.addEvent({
      title: title,
      start: info.startStr,
      end: info.endStr
    })
  }
  calendar.unselect();
},<div class="modal fade" id="schedule-edit">
  <div class="modal-dialog">
    <div class="modal-content">
      <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Add Task</h4>
        <button type="button" class="close" data-dismiss="modal">×</button>
      </div>
      <!-- Modal body -->
      <div class="modal-body">
        <form id="event-form">
          <div class="form-group">
            <label>Title:</label>
            <input type="text" name="title" id="title" class="form-control">
          </div>
          <div class="form-group">
            <label>Project:</label>
            <input type="text" id="project" class="form-control">
          </div>
          <div class="form-group">
            <label>Est. Time (hours)</label>
            <input type="text" id="time" class="form-control" placeholder="(Examples: 3,12.5,5.75" )>
          </div>
          <div class="form-group">
            <label>Time Spent (hours)</label>
            <input type="text" id="timeSpent" class="form-control" placeholder="(Examples: 3,12.5,5.75" )>
          </div>
          <div class="form-group">
            <label>Description</label>
            <!--Add rich text editor here -->
            <div class="sample-toolbar" id="description">
              <a href="javascript:void(0)" onclick="format('bold')"><span class="fa fa-bold fa-fw"></span></a>
              <a href="javascript:void(0)" onclick="format('italic')"><span class="fa fa-italic fa-fw"></span></a>
              <a href="javascript:void(0)" onclick="format('insertunorderedlist')"><span class="fa fa-list fa-fw"></span></a>
              <a href="javascript:void(0)" onclick="setUrl()"><span class="fa fa-link fa-fw"></span></a>
            </div>
            <div class="editor" id="sampleeditor"></div>
            <div class="form-group">
              <label>Priority</label>
              <!--                                 onClick="getFoodItem()"-->
              <select class="form-control" id='firstList' name='firstList' onclick="getFoodItem()">
              </select>
            </div>
            <div class="form-group">
              <label>Start Date</label>
              <br>
              <input type="date" id="myDate" placeholder="yyyy-MM-dd" />
            </div>
            <div class="form-group">
              <label>Due Date</label>
              <br>
              <input type="date" id="myDue" placeholder="yyyy-MM-dd" />
            </div>
          </div>
        </form>
      </div> 
     
    