Using jQuery to submit form from link outside of form

后端 未结 4 1521
攒了一身酷
攒了一身酷 2021-02-10 10:38

I\'m trying to submit a form from a link that is located in my nav bar.

I\'m new to javascript.jQuery and unsure why this won\'t execute.

I have a feeling there

4条回答
  •  别那么骄傲
    2021-02-10 11:05

    $("#button").click(function(e){

            $.post('url.php', $("#form").serialize(), function(data){
    

提交回复
热议问题