老外写的
| 代码如下 | 复制代码 |
|
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代码
| 代码如下 | 复制代码 |