<div class="modal fade" id="delPostModal" tabindex="-1" aria-labelledby="delModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      
      <div class="modal-body">
        Are you sure you want to DELETE?
        <div class=" p-1 text-danger"><small><span id="pname"></span></small></div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn  btn-sm btn-secondary" data-bs-dismiss="modal">Close</button>
        <button type="button" class="btn btn-sm btn-danger" id="postbtn">Yes</button>
      </div>
    </div>
  </div>
</div>