質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -38,4 +38,7 @@
|
|
38
38
|
|
39
39
|
### プラグイン
|
40
40
|
|
41
|
-
Contact Form 7 add confirm
|
41
|
+
Contact Form 7 add confirm
|
42
|
+
|
43
|
+
以下の記事を参考に要素が存在するか調べたのですがすべで無いと表示されてしまします。
|
44
|
+
[要素が存在するかどうか調べる](http://cly7796.net/wp/javascript/check-if-an-element-exists/)
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -20,6 +20,22 @@
|
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
-
###
|
23
|
+
###試したこと
|
24
24
|
|
25
|
+
①
|
26
|
+
```js
|
27
|
+
jQuery(document).ready(function($){
|
28
|
+
$(document).ready(function(){
|
29
|
+
$(".wpcf7c-btn-confirm").click(function(){
|
30
|
+
if ( $(".wpcf7-response-output").is(":contains('入力内容に問題があります')") ) {
|
31
|
+
$('.contact__flow-area .box02').removeClass('checked');
|
32
|
+
$('.contact__flow-area .box01').addClass('checked');
|
33
|
+
}
|
34
|
+
});
|
35
|
+
});
|
36
|
+
});
|
37
|
+
```
|
38
|
+
|
39
|
+
### プラグイン
|
40
|
+
|
25
41
|
Contact Form 7 add confirm
|