I've tried to find some way to select all form inputs by class.
<form action="" class="registerForm">
<input type="text" name="loginInput" class="registerInputField">
<input type="email" name="emailInput" class="registerInputField">
<input type="password" name="passwordInput" class="registerInputField">
<input type="password" name="confirmPasswordInput" class="registerInputField">
<input type="submit" value="Register">
<input type="submit" value="Cancel">
</form>
I've tried: `
input.registerInputField{}
.registerForm > input[type=text]{}
input[type=text].registerInputField{}
I read a few topics related to this, but it didn't work. I'll be glad for showing me some source or a book where I can find the answer.
HTMLElement.getElementsByTagName('input')