开发者

PHP bulk form post using ajax

开发者 https://www.devze.com 2023-03-23 15:10 出处:网络
I have a form with 100 fields ,how do i post the data to a php u开发者_StackOverflowsing ajax with out refreshingthe page,also

I have a form with 100 fields ,how do i post the data to a php u开发者_StackOverflowsing ajax with out refreshing the page,also i do not want to concatenate the field values without getelementbyid in the xmlhttprequest.

Thanks


in jQuery could be something like

$.post("/path", $("#form-id").serialize(), function(ev){
  alert("done!");
});
0

精彩评论

暂无评论...
验证码 换一张
取 消