Is there any way of getting the inserted string(of any sort) from:
<input type="number" id='zipCode' name='zipcode' />
I'm trying to get value in console as:
console.log(document.getElementbyId('zipCode').value);
is giving just a blank output when any invalid string(string containing any alphabet or other special characters) is inserted which is also the same when actually left the field blank. But I want to retrieve the actual inserted value so that I can differentiate and validate the blank field with error message "Zipcode Field Empty!" and on invalid character string with error message "Invalid Zipcode!". Is there any way to retrieve any sort of inserted string from input type='number' field?