I am attempting to remove all of the child divs from a parent div using jQuery. Is this possible without a page refresh? For example, I would like to remove the content div with something like this: $("#TODO").html(""); or .clear(); but neither seem to work. I'm assuming I need to do a page refresh but I was wondering if it is possible todo it with maybe the trash function or something? I really don't want to have to save state and refresh the page. Basically I want them to be able to click a button and clear a section instead of having to drag them all to the trash.
I am attempting to remove all of the child divs from a parent div using jQuery. Is this possible without a page refresh? For example, I would like to remove the content div with something like this: $("#TODO").html(""); or .clear(); but neither seem to work. I'm assuming I need to do a page refresh but I was wondering if it is possible todo it with maybe the trash function or something? I really don't want to have to save state and refresh the page. Basically I want them to be able to click a button and clear a section instead of having to drag them all to the trash.