Passing Values From one page to another for Updating User Details

Passing Values From one page to another for Updating User Details

Hello,
I have a UI where there is datatables and all the user details are in data tables coming through API Integration using Native Ajax with Edit and Delete option. I have Add user form and i want that on clicking Edit icon In UI all the details of particular user pass in my ADD user form to update user Details .I have API for Edit user details by his ID using PUT method I am able to pass the Id in the ADD User Form URL but not able to pass values

Can Anyone provide some help
Here is the code:

txt += "<a href='addsubadmin.html?id="+dd+"'><i class='fa fa-pencil fa-1x' aria-hidden='true' onclick='edit("+dd+")'></i></a> ;

The dd(id="+dd+) variable passes particular user ID to the Add user form.I am able to display values in javascript alert for particular user but unable to pas the values.