The solution was to add one more add hidden parameter named action and value.
$('.btnDelete').on('click', function(e){
var $form=$(this).closest('form');
e.preventDefault();
$('#confirm').modal({ backdrop: 'static', keyboard: false })
.one('click', '#delete', function (e) {
var sectorId = $(this).parent().parent().children()[0].innerHTML;
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "sectorId");
input.setAttribute("value", sectorId);
document.getElementById("sectorForm").appendChild(input);
input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "action");
input.setAttribute("value", delete);
document.getElementById("sectorForm").appendChild(input);
$("#sectorForm").submit();
});
});
I don't know but there can be better solution. Will wait for your answers.