Hello friends I have made the below mentioned code, it is working but its second function to delete a row is not working:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script>
function generateRow()
{
var d=document.getElementById("sip");
d.innerHTML+="<p> <input type='text'></p>";
}
function deleterow()
{
var f=document.getElementById("sip");
f.innerHTML-="<p> <input type='text'></p>";
}
</script>
</head>
<body>
<div id="sip">
<tr align="right"><td><input type="button" value="+" onclick="generateRow()"></td></tr>
<tr align="right"><td><input type="button" value="-" onclick="deleterow()"></td></tr>
</div>
</body>
</html>