When the userName field of the login web form contains inval…

When the userName field of the login web form contains invalid data entered by the user, both of the following JavaScript commands will return false: Command 1: document.forms.login.elements.userName.checkValidity() Command 2: document.forms.login.checkValidity()

Suppose you are working on a web form that contains the foll…

Suppose you are working on a web form that contains the following hidden field: Which JavaScript statement should you add to the following code to store the name of the sauce flavor selected by the user as data in this hidden field? let orderForm = document.forms.orderForm; let sauceFlavor = orderForm.elements.sauceFlavor; let sauceIndex = sauceFlavor.selectedIndex;