Data Coming from hidden value in PHP page. I have set value in hidden field. Fetching those value in chart.html page. This html page contain charNew.js
.
I am fetching those value as
var fstval= document.getElementById('fstval').value;
var sndval= document.getElementById('sndval').value;
In mydata var set
data : [fstval,0,sndval]
Then I have called chart.html in iframe
in my PHP page. But I am getting null at ID. I could not understand why I am not getting the value?