Update values of the Flask forms in JavaScript section
2021. 9. 2. 12:34ㆍFrontend/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
반응형
'Frontend > Web programming' 카테고리의 다른 글
JavaScript fundamental (자바스크립트 기본) (0) | 2021.12.31 |
---|---|
TypeScript (0) | 2021.12.05 |
Flask: update form value at JavaScript code (0) | 2021.08.14 |
JavaScript, HMLT: changing color of selected row in table (0) | 2021.08.14 |
JavaScript: AJAX call w/ Flask (0) | 2021.08.14 |