質問編集履歴
2
説明修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
ページ内で特定の文字列を検索して、テーブル内のレコード抽出しています。
|
2
2
|
|
3
|
+
(抽出はできています)
|
4
|
+
|
3
|
-
|
5
|
+
この後、抽出されたレコード内の特定の文字列(検索した文字列)の色を変える、という仕組みを作りたいのですが、うまくいきません。
|
6
|
+
|
7
|
+
|
4
8
|
|
5
9
|
CSSのハイライトをどのように記述すればいいのでしょうか。
|
6
10
|
|
1
htmlのhead部分追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,6 +80,8 @@
|
|
80
80
|
|
81
81
|
});
|
82
82
|
|
83
|
+
|
84
|
+
|
83
85
|
```
|
84
86
|
|
85
87
|
```CSS
|
@@ -96,8 +98,28 @@
|
|
96
98
|
|
97
99
|
```html
|
98
100
|
|
101
|
+
<head>
|
102
|
+
|
103
|
+
<script type="text/javascript" src="jquery.js"></script>
|
104
|
+
|
105
|
+
<script type="text/javascript" src="jquery-highlight-5s.js"></script>
|
106
|
+
|
107
|
+
</head>
|
108
|
+
|
109
|
+
<body>
|
110
|
+
|
111
|
+
|
112
|
+
|
99
113
|
<p> <input type="text" id="search" value=" "> <input type="button" value="and検索" id="button2" id="btn-onoff"> <input type="button" value="すべて表示" id="button3"> </p>
|
100
114
|
|
101
115
|
<table id="result">
|
102
116
|
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
</body>
|
124
|
+
|
103
125
|
```
|