how to apply a DOM value in JQuery plugins?

how to apply a DOM value in JQuery plugins?

I created an Ajax code which could change the value in the span but what I actually want is the value apply into the Jquery seat-charts plugin, is there any way to move the output of Ajax to Jquery plugins?
below is my plugin code:

                <script>
                 $(document).ready(function(){
                  $("#time-select").change(function(){
                   var time = $("#time-select").val();
                   var date = $("#date").val();
                   var branch = $("#branchval").val();
                   
                   $.ajax({
                    url: "Bookingajax.php",
                    type: "post",
                    async: false,
                    data: {
                     "done": 1,
                     "time": time,
                     "date": date,
                     "branch": branch
                    },
                    success: function(data){
                     $("#checkspan").html(data);
                    }
                    
                    });
                  });
                 });
                </script>


and this is my Ajax code in Bookingajax.php

<?php

 include "include/conn.php";
 
 if(isset($_POST['done'])){
   $time = $_POST['time'];
   $date = $_POST['date']; 
   
   if($_POST['branch'] == 'Penang Bukit Tengah'){
    $branch = "1101";
   } else if($_POST['branch'] == 'Kuala Lumpur Bukit Jalil'){
    $branch = "1102";
   } else if($_POST['branch'] == 'Kuala Lumpur Bukit Bintang'){
    $branch = "1103";
   }
   
 $sql = "SELECT * FROM reservation WHERE rsv_time = '".$time."' AND rsv_date = '".$date."' AND branch_ID = '".$branch."'";    
 $result = mysqli_query($conn, $sql);
 
 while($row = mysqli_fetch_array($result)) {
  echo $row['tbl_ID'];
 }
}
 

?>

and when time change the Ajax will show the output in this span

<span id="checkspan" ></span>  


and what I want is the value be fetch into the sc.get, the span is just the testing for me to see whether the Ajax is work or not, my main purpose is to change the seats in sc.get. is there any solution for this? 

sc.get(['01_A','01_D']).status('unavailable');