I am desperately in need for assistance, I have a table for which I want to add and remove rows with buttons.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title> Assessment</title>
<link rel="stylesheet" href="css/normalise.css">
<link rel="stylesheet" href="css/Main.css">
</head>
<body id="Mybody">
<form id="RiskManagement">
<fieldset>
<table id="myTable">
<tr>
<th>#</th>
<th>Activity conducted</th>
<th>Hazard associated with the activity</th>
<th>Risk associated with the hazard</th>
<th>Liklihood of risk manifesting</th>
<th>Consequence for when risk manifest</th>
<th>Risk rating</th>
<th>Risk severity level</th>
<th>Controls to implement</th>
</tr>
<tr class="MyRow" id="rs">
<td><input type="number" id="riskNumber" readonly></td>
<td><textarea type="text"></textarea></td> <!--activity input-->
<td><textarea type="text"></textarea></td> <!--Hazard input-->
<td><textarea type="text"></textarea></td> <!--risk input-->
<td ><input id="Liklihood" type="number" name="risk_liklihood" min="0" max="3"></td> <!--liklihood input-->
<td ><input id="Consequence" type="number" name="risk_consequence" min="0" max="3" ></td> <!--consequence input-->
<td id="myRisk"><input id="Risk_rating" name="Risk_rating" readonly></td> <!--risk rating input-->
<td id="mySeverity"><input id="Severity_level" type="text" readonly></td> <!--severity level to auto display input-->
<td><textarea type="text"></textarea></td>
<td><button class="remove" id="removeRows">-</button></td> <!--Remove button-->
</tr>
</table>
</fieldset>
<button id="addRow">+ Add</button>
</form>
<script src="js/app.js"></script>
</body>
</html>
please assist me with guidelines or even a piece of code in java script that I can use to add and delete rows using the buttons.
Help would be greatly appreciated.