..
Thanks to the jQuery library is very easy to remove an element from the DOM. To do this simply use the remove () associated to the selector of the item you want to remove. Example:
<div id="cancellami"> element to remove </ div>
<a href="javascript:cancella()"> Click here to cancel </ a>
<script>
function erase () {
$ ('# Remove me'). Remove ()
}
</ Script>
| |
CSS (Course)
Web Design and Accessibility according to W3C CSS and XHTML. Starting from 29 €. |
| |
HTML (Course)
The markup language for the Web from 29 €. |
| |
Javascript (Course)
Complete guide to client-side scripting. From 39 €. |