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/
精彩评论