Skip to content
Advertisement

How to use html form to submit API link to get JSON response

I am creating a Package Tracking Form for a courier company.

Here is my html form

JavaScript

Company has provided the API Link

JavaScript

When I click this link I get this data

JavaScript

I want to use html form so visitor enters his package tracking # and get his package details

Advertisement

Answer

They usually use jquery to do this

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement