7.0
Table Of Contents
7.3 Removing elements from the DOM
The following snippet is a simple sample on how to remove an HTML element based on its ID. The element is
removed once the page is rendered by the browser.
<script type="text/javascript">
$(document).ready( function(){
$("#legend_joboverviewList").remove();
});
</script>
Removing elements is not without risk and should be tested carefully (especially save actions).
Objectif Lune Inc. © 2010 49