We can store data in the elements through HTML5’s data attributes. See below for an example on how to store and retrieve data from the data attributes.
The values are added to the anchor element through the data-value and data-options attributes. This is how you access the values:
alert('The ' + $("#elink").data("value") + ' name is ' + $("#elink").data("options").cn);
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.




















