I have this form:
<div class="modal-body">
  <form action="repository/add_new_task.php">
    
    <div class="form-group">
      <label for="street" class="col-form-label">Street</label>
      <input type="text" class="form-control" id="street">
    </div>
    
    <div class="form-group">
      <label for="phone" class="col-form-label">Phone</label>
      <input type="text" class="form-control" id="phone">
    </div>
    
    <div class="form-group">
      <label for="date" class="col-form-label">Date</label>
      <div class="input-group date" id="datetimepicker" data-target-input="nearest">
        <input type="text" class="form-control datetimepicker-input" id="date" data-target="#datetimepicker">
        <div class="input-group-append" data-target="#datetimepicker" data-toggle="datetimepicker">
          <div class="input-group-text"><i class="fa fa-calendar"></i></div>
        </div>
      </div>
    </div>
    
    <div class="form-group">
      <label for="price" class="col-form-label">Price</label>
      <input type="text" class="form-control" id="price">
    </div>
    
    <div class="form-group">
      <label for="comment" class="col-form-label">Comment</label>
      <textarea type="text" class="form-control" rows="3" id="comment"></textarea>
    </div>
    
    <div class="form-group">
      <label for="job-type" class="col-form-label">Comment</label>
      <select class="form-control" id="job-type">
        <option value="0">Repair</option>
        <option value="1">Multistory Pull In</option>
        <option value="2">Multistory Weld</option>
        <option value="3">Private Residence</option>
      </select>
    </div>
    
    <button type="submit" class="btn btn-primary btn-block" name="new-task-submit">Create task</button>
  </form>
</div>
All I need to do is to make button disabled until all the fields (including datepicker and textarea) have values in them.
I tried following the answer in this post and while it worked I struggles to make it work for my datepicker and textarea. Can someone please help me figure this out
 
     
    