Update values of the Flask forms in JavaScript section

2021. 9. 2. 12:34Frontend/Web programming

    목차
반응형
document.getElementById('first name').value = json_obj.first_name
document.getElementById('last name').value = json_obj.last_name

simply get DOM object by calling document.getElementById, and the update its value with what you want to update.

the example code are here

 

반응형