In all browsers except IE, the code works well, but in IE it gives the error "a row or number identifier is assumed." I just can not figure out what the problem is.
function saveDraftToIBlock(input, iBlockID, sectionID) { Fingerprint2.getV18(function (result) { var serializedData = { userID: result, iBlockID: iBlockID, sectionID: sectionID, [$(input)[0].name]: $(input)[0].value // ошибка тут }; var url = '/ajax/form_saver.php'; var type = 'post'; syncAjax( url, type, serializedData, function (result) {}, function (error){ console.log(error); } ); }); };