пример ниже просто демонстрация сохранения удалённого ... ставить галочки в checkbox.
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<form action="http://">
<input name="" type="text" id="check1" value="111"><input name="" type="checkbox" data-id="1"><br>
<input name="" type="text" id="check2" value="222"><input name="" type="checkbox" data-id="2"><br>
<input name="" type="text" id="check3" value="333"><input name="" type="checkbox" data-id="3"><br>
</form>
<script>
var removeHid = function() {
var temp = {};
return function(id) {
id = "check" + id;
var elem = document.getElementById(id);
if (elem) {
temp[id] = [elem, elem.parentNode, elem.nextSibling];
elem.parentNode.removeChild(elem);
} else {
elem = temp[id][0];
if (elem) temp[id][1].insertBefore(elem, temp[id][2])
}
}
}();
var form = document.querySelector("form");
form.onclick = function(event) {
var id = event.target.dataset.id;
id && removeHid(id)
};
</script>
</body>
</html>