开发者

How to remove checkbox from div using jQuery?

开发者 https://www.devze.com 2023-01-11 16:31 出处:网络
How t开发者_StackOverflowo remove checkbox from div using jQuery?You can use .remove() in combination with a selector, like this:

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

精彩评论

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