<div class="modal fade" id="exampleModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel2"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel2">Updated Movie</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="updateForm">
<div class="form-group row">
<div class="col-sm-10">
<input type="hidden" class="form-control" id="movieId">
</div>
</div>
<label for="idmovielist" class="col-sm-2 col-form-label">ID</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="intNum" placeholder="idmovielist">
</div>
<div class="form-group row">
<label for="name" class="col-sm-2 col-form-label">name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name" placeholder="name">
</div>
</div>
<div class="form-group row">
<label for="thumnail_path" class="col-sm-2 col-form-label">thumnail path</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="thumnail_path" placeholder="thumnail_path">
</div>
</div>
<div class="form-group row">
<label for="description" class="col-sm-2 col-form-label">description</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="description" placeholder="description">
</div>
</div>
<div class="form-group row">
<label for="year_released" class="col-sm-2 col-form-label">year released</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="year_released" placeholder="year_released">
</div>
</div>
<div class="form-group row">
<label for="language_released" class="col-sm-2 col-form-label">language released</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="language_released"
placeholder="language_released">
</div>
</div>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button id="updateMovie" type="button" class="btn btn-primary" data-toggle="modal"
data-target=#exampleModal2>Update
</button>
<button id = "deleteMovie" type="buton" class="btn btn-primary" data-toggle="modal"
data-target=#exampleModal2>Delete
</button>
</form>
</div>
</div>
</div>
</div>
因此,在上面,每次我要更新某些内容时,我都会有一个模态弹出式窗体,该对话框用于更新方法,我希望已知值已经显示出来,如何在下面进行操作,我将共享一个屏幕截图
这就是表格的样子,我希望信息会自动填充