how to extract java script element code example
Example 1: how to extract java script elemet
var MyDiv1 = document.getElementById('myid');
alert(MyDiv1.getAttribute('data-variableid2'));
Example 2: how to extract java script elemet
<div id="myid" data-variableid2="1234"> </div>