inputField.addEventListener('keyup', function() {
// Check if the length of the input field's value matches the desired length
if (this.value.length === 10) { // Change '10' to your desired length
// Submit the form
myForm.submit();
}
});

const inputField = document.getElementById('myInputField');
const myForm = document.getElementById('myForm');
