add hidden field to job application form
This commit is contained in:
parent
cc743c9765
commit
d77967a2fb
2 changed files with 3 additions and 0 deletions
|
@ -6,9 +6,11 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function openApplyForm(title) {
|
function openApplyForm(title) {
|
||||||
let titleh3 = document.getElementById("title-h3")
|
let titleh3 = document.getElementById("title-h3")
|
||||||
|
let jobInput = document.getElementById("jobInput")
|
||||||
let form = document.getElementById("apply-form")
|
let form = document.getElementById("apply-form")
|
||||||
|
|
||||||
titleh3.innerHTML = title
|
titleh3.innerHTML = title
|
||||||
|
jobInput.value = title
|
||||||
form.classList.remove('invisible')
|
form.classList.remove('invisible')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<div class="close-btn" onclick="closeApplyForm()"></div>
|
<div class="close-btn" onclick="closeApplyForm()"></div>
|
||||||
<div class="supertitle">Your application as:</div>
|
<div class="supertitle">Your application as:</div>
|
||||||
<h3 id="title-h3" class="title"></h3>
|
<h3 id="title-h3" class="title"></h3>
|
||||||
|
<input class="invisible" type="text" name="job" id="jobInput">
|
||||||
<p class="lead">Great, you've made the first step. We look forward to your application</p>
|
<p class="lead">Great, you've made the first step. We look forward to your application</p>
|
||||||
<div class="apply-row">
|
<div class="apply-row">
|
||||||
<div class="apply-section -contact">
|
<div class="apply-section -contact">
|
||||||
|
|
Loading…
Reference in a new issue