回答編集履歴
1
edit
answer
CHANGED
@@ -6,6 +6,6 @@
|
|
6
6
|
|
7
7
|
あとモーダル開くなら、引数にオプションが必要では?
|
8
8
|
[Bootstrap4 - Modal#Methods](https://getbootstrap.com/docs/4.0/components/modal/#methods)
|
9
|
-
`$(
|
9
|
+
`$('#targetId').modal('show')`
|
10
10
|
|
11
11
|
「任意のタイミングで発生させたい」のではなく「ボタンクリック」など決まったタイミングならそのボタンに` data-toggle="modal" data-target="#targetId"`を当てたほうが楽かと思います。
|