I need to filter using dynamic parameters from a form post. But I dont know how to send the parmeters with a dynamic generated name... see code below hope it explains my problem.
$('#kt_search').on('click', function(e) {
e.preventDefault();
var frm_data = $('#searchFrom').serializeArray();
$.each(frm_data, function(key, val) {
myData.comercial = 23; //THIS WORKS
myData.val.name = val.value; // THIS IS INCORRECT
});
table.table().draw();
});