This repository contains a simple JavaScript code snippet for form validation using the getElementById method. The provided code focuses on validating a username and password input by checking their length against specified criteria.
criteria if needed by modifying the validateUsername and validatePassword functions.
Username: Should not exceed 10 characters. Password: Should be at least 8 characters long.
Feel free to adapt