开发者

How to remove checkbox from div using jQuery?

How t开发者_StackOverflowo remove checkbox from div using jQuery?


You can use .remove() in combination with a selector, like this:

$("#myDiv :checkbox").remove();

Which selector you'd use depends on your markup, you can read more on selectors here and here.


You can also use animation, like fadeOut. It turns your page being more pleasent

$("#myDiv :checkbox").fadeOut('slow'); 

API Documentation

http://api.jquery.com/fadeOut/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜