Submit button added to form and script started
This commit is contained in:
parent
0dcdfdf628
commit
c0d3d6392b
1 changed files with 12 additions and 1 deletions
|
@ -14,11 +14,22 @@
|
||||||
<option value="pass">Password</option>
|
<option value="pass">Password</option>
|
||||||
</select> <br />
|
</select> <br />
|
||||||
<label for="value">Value</label>
|
<label for="value">Value</label>
|
||||||
<input type="text" id="value" name="value" />
|
<input type="text" id="value" name="value" /> <br />
|
||||||
|
<input type="submit" value="submit" />
|
||||||
</form>
|
</form>
|
||||||
<footer>
|
<footer>
|
||||||
UL Computer Society 2023-<span id="year">2023</span>
|
UL Computer Society 2023-<span id="year">2023</span>
|
||||||
</footer>
|
</footer>
|
||||||
|
<script>
|
||||||
|
const formEl = document.getElementById('recovery');
|
||||||
|
formEl.addEventListener('submit', (listener) => formHandler(listener));
|
||||||
|
|
||||||
|
function formHandler(listener){
|
||||||
|
alert('Not implemented yet');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('year').textContent = new Date().getFullYear().toString()
|
document.getElementById('year').textContent = new Date().getFullYear().toString()
|
||||||
|
|
Loading…
Reference in a new issue