I have a javascript object and an html table.
var myObj = [
{
price: 1,
label: "One"
}
];
<table>
<tr>
<th id = "price">100</th>
<th id = "label">product</th>
</tr>
<table>
Is it possible to insert the table values in the object?
In order to have updated properties
{
price: 100,
label: "product"
}