Return to Snippet

Revision: 28473
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