Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dataset javascript

<body>
<div id = "id_name" data-tagName = "value" data-tagName1 = "value">
Display Data
</div>
<script>
const variable_name = document.getElementById('id_name');
console.log(variable_name.dataset);
</script>
</body>
Source by www.educba.com #
 
PREVIOUS NEXT
Tagged: #dataset #javascript
ADD COMMENT
Topic
Name
5+5 =