The provided code snippet is not functioning correctly. It involves using JSON to import data for a table displayed in HTML. Each table row contains a modal button that, when clicked, opens a modal view with two additional buttons (approve and disapprove). The desired functionality is such that clicking on approve or disapprove will trigger specific actions on the corresponding row in the table (i.e., either remove it if approved or change background color to red if disapproved).
html{
font:0.75em/1.5 sans-serif;
color:#333;
background-color:#fff;
padding:1em;
}
/* Remaining CSS code */
<!-- JavaScript Code -->
{
"person": [
{
"firstName": " ",
"lastName": "Kent",
"job": "Reporter",
"roll": 20,
"hours":10
},
{
"firstName": " ",
"lastName": "Wayne",
"job": "Playboy",
"roll": 30,
"hours":20
},
{
"firstName": " ",
"lastName": "Scott",
"job": "PaperMan",
"roll": 20,
"hours": 40
}
]
}
~