Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 打开后重置模式内容_Jquery_Twitter Bootstrap 3 - Fatal编程技术网

Jquery 打开后重置模式内容

Jquery 打开后重置模式内容,jquery,twitter-bootstrap-3,Jquery,Twitter Bootstrap 3,我有一张桌子: <table class="table table-striped"> <thead> <tr> <th>Naam</th> <th>E-mail</th> <th>Verwijderen</th> </tr> </thead> <tbody>

我有一张桌子:

<table class="table table-striped">
    <thead>
    <tr>
        <th>Naam</th>
        <th>E-mail</th>
        <th>Verwijderen</th>
    </tr>
    </thead>
    <tbody>
    @foreach($customers as $customer)
        <tr>
            <td><a href="{{ route('admin_customers_single', $customer->id) }}">{{ $customer->name }}</a></td>
            <td>{{ $customer->email }}</td>
            <td><a href="{{ route('admin_customers_delete', $customer->id) }}"><span class="glyphicon glyphicon-trash"></span></a></td>
        </tr>
    @endforeach
    </tbody>
</table>
数据显示出来了,所以它可以工作

<a class="btn btn-primary" href="#" data-toggle="modal" data-target="#myModal" role="button">@lang('admin.customers_new')</a>

单击此定位点后,仍有数据。。
如何将模式重置为其默认内容?

使用
隐藏.bs.modal
事件

此事件在模态已完成从中隐藏时激发 用户(将等待CSS转换完成)


我的回答对你有帮助吗?
<a class="btn btn-primary" href="#" data-toggle="modal" data-target="#myModal" role="button">@lang('admin.customers_new')</a>
$('#myModal').on('hidden.bs.modal', function (e) {
  // Reset the fields values here.
})