Animated AJAX Record Deletion Using jQuery. I'm a huge fan of WordPress' method of individual article deletion.
You click the delete link, the menu item animates red, and the item disappears. Here's how to achieve that functionality with jQuery JavaScript. Manipulating the DOM with jQuery: 10+ useful code snippets. Add a CSS class to a specific element A very clean way to change an element look and feel is to add a css class, instead of adding inline styles.
Using jQuery, this is pretty easy to do: $('#myelement').addClass('myclass'); Removing a CSS class from a specific element It’s great to be able to add some CSS classes, but we also need to know how to remove unwanted classes. Spritely.net.