var formData = new FormData(document.getElementsByName('form_name')[0]);
var formData = new FormData(document.getElementById('form_id'));