Saved Bookmarks
| 1. |
Why To Use “data” Method In Jquery? |
|
Answer» “data” METHOD is used to ATTACH the data to the ELEMENTS in DOM. When the element is removed data also will be removed. For example: jQuery.data( document.body, "a4academics", 40 ); “data” method is used to attach the data to the elements in DOM. When the element is removed data also will be removed. For example: jQuery.data( document.body, "a4academics", 40 ); |
|