passing variable sized form

后端 未结 3 1147
无人及你
无人及你 2021-01-19 17:51

I have a form that is of variable size (length) that is populated from a MySQL db. There are 4 fields that make up the information used to create a button (id, button#, nam

3条回答
  •  一生所求
    2021-01-19 18:29

    Hope this helps:

    $('form').submit(function() {
        $.post("myfile.php", $(this).serialize(), function(response) {
            console.log(response);
        });
    });
    

提交回复
热议问题