the td id='data' has the value below
['car', 7],['jeep', 2],['taxi', 1]
I want to get the value of 'td tag' and put on "Google Chart" arrayToDataTable
i tried this but not working
var x = document.getElementById('data').innerHTML; var data = google.visualization.arrayToDataTable([ ['Data', 'Value'], x
]);
Can anyone tell me how to do it.... need help