I need to print html form data on same page after submit. There are many articles on this topic but they are printing the data in html table format, I have to print the specific input field in the specific div prepared for that. Actually i am making pdf generator with the help of html2pdf js library so i have to print specific data in specific div. I am trying to do this using html,css and js. How can I print different data in different div with the help of js?
In your JS file, try:
document.getElementById("your div id").innerHTML += ` info you want to put in the div `