最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Jquery 选择器中使用变量的例子
时间:2022-11-14 22:03:15 编辑:袖梨 来源:一聚教程网
老外写的
| 代码如下 | 复制代码 |
|
OR you can do something like this. var id = this.id; $('#' + id).hide(); OR you can give some effect also. $("#" + this.id).slideUp(); If you want to remove the entire element permanently form the page. $("#" + this.id).remove(); You can also use it in this also. $("#" + this.id).slideUp('slow', function (){ |
|
html
| 代码如下 | 复制代码 | ||||||||
|
|||||||||
js代码
| 代码如下 | 复制代码 |