Jquery delete value from FormData object

后端 未结 3 499
说谎
说谎 2021-01-18 04:05

how I can delete value from FormData object with same name? I have HTML form with two input files.



        
3条回答
  •  误落风尘
    2021-01-18 05:10

    if you're using jQuery you can use

    $("#human").remove();
    

    if you're using vanilla JS you can do the following

    var human = document.getElementById('human');
    human.parentNode.removeChild(human);
    

提交回复
热议问题