Your HTML has id=“apssnumber”. Your Javascript is calling appsnumber.
apssnumber vs appsnumber.
They are not the same .