DEV Community

Tomopteris
Tomopteris

Posted on

Week 5 JavaScript Discussion

What is an element in a form?

– Ways a user can interact with a website with elements such as form, input, text area, label, buttons, etc.

Which properties and methods exist for input boxes?

– For input boxes, there are many ways to customize them, for example, you can change the color, dates, image, text, etc.

How do you display the current date in a form?




<input type="text" id=”date” name=”date”></input>

<script type=”text/javascript”>

document.getElementById(‘date’).value = Date()

</script>

Top comments (0)