...
/Solution Review: Get Elements Using Attributes
Solution Review: Get Elements Using Attributes
This lesson will explain the solution to the problem in the previous lesson.
We'll cover the following...
Solution #
Explanation
In this challenge, you had to implement the functions getElementByAttribute
, which takes two parameters: the attribute
name and the element_type
. You had to use this function to implement the function lowerupper
that converts all alphabets entered in the First name
input text field to the upper case.
In the HTML file, we have defined two input
elements for first name and last name with the following attributes:
-
type
: the value oftype
istext
for both inputs, i.e., the text you ...