Revision: 28473
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 8, 2010 17:30 by omerta83
Initial Code
$("div").data("myName", 'addy');
$("div").data("myName") === 'addy';
/* Here are two ways to remove all of the information
bound to an element*/
$("div").removeData();
$("div").remove();
Initial URL
Initial Description
Initial Title
Using .data() method for storing the info on DOM nodes
Initial Tags
javascript, jquery
Initial Language
JavaScript