I filled the user details HTML form and provide unique code to every user and save it in MongoDB using flask and call the data back from MongoDB to Html as a table I want to provide an edit button to every user and that edit button show the same form with pre-fill data provided as per the table, how can we do this using flask and HTML (jQuery, javascript, etc)? I have done the showing table part but not getting how can i edit the form that shows pre-filled values. enter image description here