How to capture these data?

Hi guys,

I have a chart form,

As you can see it’s a form with columns and rows.
How do I capture the data,
row: Bookers
column: Sweet

I’m not sure If I can capture that using getElementById() ?
I want to get the value and save it in the database?

Any help please?

Thank you very much in advanced.