私はこの質問に関する回答を探していましたが、私が必要とする正しい答えが見つかりませんでした。 私はブートストラップでモーダルダイアログを使用していますが、私はクリックイベントでモーダルの内容を変更したいと思います。私はすべてのコンテンツを変更したいEdit informations
ボタンをクリックした後クリック時にモーダルコンテンツを変更する方法(ブートストラップ)
これは私のモーダルダイアログのコード
<div class="modal fade" id="myModal{{ $user->id }}" tabindex="-1" class="closemodal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
<h4 class="modal-title" id="myModalLabel">More About {{ $user->name }}</h4>
</div>
<div class="modal-body">
<center>
<img src="http://bootdey.com/img/Content/user_1.jpg" name="aboutme" width="140" height="140" border="0" class="img-circle"></a>
<h3 class="media-heading">{{ $user->name }}<small>, USA</small></h3>
<span><strong>Skills: </strong></span>
<span class="label label-warning">HTML5/CSS</span>
<span class="label label-info">Adobe CS 5.5</span>
<span class="label label-info">Microsoft Office</span>
<span class="label label-success">Windows XP, Vista, 7</span>
</center>
<hr>
<center>
<p class="text-left"><strong>Email: </strong>
{{ $user->email }}</p>
<br>
</center>
</div>
<div class="modal-footer">
<center>
<button type="button" class="btn btn-default" data-dismiss="modal">I've heard enough about {{ $user->name }}</button>
<button type="button" class="btn btn-danger" id="editUserAdmin">Edit informations</button>
</center>
</div>
</div>
</div>
</div>
ですが、私はいくつかの入力フィールドを挿入します。
ページの更新まで、新しいもののまま、あなたは何を試してみましたか?助けが必要な場合は、あなたの質問にもっと具体的にしてください。 – Enijar
こんにちは、#epowah、あなたの仕事の詳細を教えてください。 –
@Enijar私は質問を編集する – Devmasta