I'm trying to build a macro tracker algorithm which will simply display the macros of the food selected from the drop-down menu... but I have no idea how to do this.. As shown in the image, there is a table header below which the data will be shown... I tried using the inserting rows and inserting cells via their respective functions using JS in my DOM but that didn't help me.
Steps :- User selects a food item from a drop-down menu , The name and the macros of the selected item show up in the table in the same manner... plz help.. thanks for your help
https://i.stack.imgur.com/betb9.png