I have a webpage with a button. clicking the button opens a modal. inside this modal there’s a (Django) form. it has few inputs and some buttons (including a submit
button).
- my form is:
<form method="post" id="backupCreateForm" action="/backup/create/"> ...</form>
- its parent, the modal is :
<div class="modal fade in" id="createModal" tabindex="-1" role="dialog" aria-labelledby="createModalLabel" aria-hidden="true">
I can’t seem to select the form element with document.getElementById
, it returns undefined
. how can I select it?