質問編集履歴
2
調整
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
3
|
WordPressのcontact form 7 add confirmの状態によってスタイルを変えたいです
|
4
|
-
hasClassを使って
|
4
|
+
hasClassを使ってboxにclassを付加させたいがうまく動かない
|
5
5
|
|
6
6
|
### 該当のソースコード
|
7
7
|
|
1
補足
title
CHANGED
File without changes
|
body
CHANGED
@@ -21,6 +21,28 @@
|
|
21
21
|
})(jQuery);
|
22
22
|
```
|
23
23
|
|
24
|
+
該当のHTML
|
25
|
+
|
26
|
+
入力画面
|
27
|
+
```html
|
28
|
+
<div class="contact-button-area">
|
29
|
+
<input type="submit" value="内容を確認する" class="wpcf7-form-control wpcf7-confirm wpcf7c-elm-step1 wpcf7c-btn-confirm">
|
30
|
+
<input type="button" value="戻って内容を修正する" class="wpcf7-form-control wpcf7-back wpcf7c-elm-step2 wpcf7c-btn-back wpcf7c-force-hide">
|
31
|
+
<input type="submit" value="送信する" class="wpcf7-form-control wpcf7-submit wpcf7c-elm-step2 wpcf7c-force-hide"><span class="ajax-loader"></span>
|
32
|
+
</div>
|
33
|
+
```
|
34
|
+
|
35
|
+
確認画面
|
36
|
+
|
37
|
+
```
|
38
|
+
<div class="contact-button-area">
|
39
|
+
<input type="submit" value="内容を確認する" class="wpcf7-form-control wpcf7-confirm wpcf7c-elm-step1 wpcf7c-btn-confirm wpcf7c-force-hide">
|
40
|
+
<input type="button" value="戻って内容を修正する" class="wpcf7-form-control wpcf7-back wpcf7c-elm-step2 wpcf7c-btn-back">
|
41
|
+
<input type="submit" value="送信する" class="wpcf7-form-control wpcf7-submit wpcf7c-elm-step2"><span class="ajax-loader"></span>
|
42
|
+
</div>
|
43
|
+
```
|
44
|
+
|
45
|
+
|
24
46
|
### 発生している問題
|
25
47
|
|
26
48
|
1つ目のif分は動いており`box01`には`checked`というclassが付きます
|