Answers for "how to extract java script elemet"

1

how to extract java script elemet

var MyDiv1 = document.getElementById('myid');
alert(MyDiv1.getAttribute('data-variableid2'));
Posted by: Guest on May-25-2021
0

how to extract java script elemet

<div id="myid" data-variableid2="1234"> </div>
Posted by: Guest on May-25-2021

Code answers related to "how to extract java script elemet"

Code answers related to "Javascript"

Browse Popular Code Answers by Language