/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
$("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();
Comments
 Subscribe to comments
                    Subscribe to comments
                
                