0

I am not getting a better example which show how can I post JSON array as normal HTTP POST ( Form Submission ) not ajax.

For example I want to send

[ 
 { "id": "1",
   "name" : "test"
 },
{ "id": "2",
   "name" : "test2"
 }
]

to the server as normal form submission and when the HTML response comes from server then that should be painted in browser. I am using Angular 1.6, HTML5, JS

Rajesh
  • 2,934
  • 8
  • 42
  • 71
  • besides that, of course you can also post using a real `form` – apple apple Mar 18 '19 at 16:46
  • example which you posted uses jquery and I dont want to use it. Can we do it without using jquery? – Rajesh Mar 18 '19 at 16:53
  • Duplicate: https://stackoverflow.com/questions/32553039/post-form-data-as-application-json (can't close it as one until someone upvotes an answer though) – Quentin Mar 18 '19 at 16:55

0 Answers0