Posts by Steffany • 11 points
1 post
-
1
votes1
answer448
viewsA: Pass variable javascript to Django Form
In Html: <div id="linked_exam">{{form.linked_exam}}</div> In the script: document.getElementById("linked_exam").innerText = exam_id; First: in your code you are capturing the label…