回答編集履歴
2
修正
test
CHANGED
@@ -4,8 +4,28 @@
|
|
4
4
|
|
5
5
|
```js
|
6
6
|
|
7
|
-
var class_name = "video[class*= + className + "]"
|
7
|
+
var class_name = "video[class*=" + className + "]"
|
8
8
|
|
9
9
|
$(class_name)
|
10
10
|
|
11
11
|
```
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
というか、クラス名がclassNameなvideo要素なら、
|
16
|
+
|
17
|
+
video.classNameだと思うので、
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
```js
|
22
|
+
|
23
|
+
var class_name = "video. " + className
|
24
|
+
|
25
|
+
$(class_name)
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
ではダメですか?
|
1
修正
test
CHANGED
@@ -1 +1,11 @@
|
|
1
|
+
先に変数をその形式にしたらダメですか?
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
```js
|
6
|
+
|
1
|
-
|
7
|
+
var class_name = "video[class*= + className + "]"
|
8
|
+
|
9
|
+
$(class_name)
|
10
|
+
|
11
|
+
```
|