回答編集履歴
1
サンプル
answer
CHANGED
@@ -1,3 +1,12 @@
|
|
1
1
|
not が使えると思います。
|
2
2
|
- [jQueryの「not() / :not()」の違いと活用法を極める!](https://www.sejuku.net/blog/37111)
|
3
|
-
- [jQuery .not()と:not()の色々な使い方](https://zxcvbnmnbvcxz.com/jquery-not%E3%81%A8not%E3%81%AE%E8%89%B2%E3%80%85%E3%81%AA%E4%BD%BF%E3%81%84%E6%96%B9/index.html)
|
3
|
+
- [jQuery .not()と:not()の色々な使い方](https://zxcvbnmnbvcxz.com/jquery-not%E3%81%A8not%E3%81%AE%E8%89%B2%E3%80%85%E3%81%AA%E4%BD%BF%E3%81%84%E6%96%B9/index.html)
|
4
|
+
|
5
|
+
|
6
|
+
# サンプルコード
|
7
|
+
|
8
|
+
```js
|
9
|
+
|
10
|
+
$('a[href^="#"]').not('#test').click(function(){
|
11
|
+
|
12
|
+
```
|