Skip to content

Category: JavaScript

Set the value of an input field using JavaScript

This is one way of doing it: use ‘setAttribute’ function: