-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homework 4 submission for Dylan Graham #3
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
function clearInput() { | ||
$("#city-type").val(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dylantg if you use toLowerCase()
it willl cover if the input was entered with a upper case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have var cleanedSearchInput = searchInput.trim().toLowerCase();
on Line 16 to allow for various inputs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dylantg apologies
} | ||
// If no match, give an alert, remove background image, and clear the input | ||
else { | ||
alert("Sorry, we don't recognize input: " + searchInput + "\n Try again"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dylantg nice to have an error message 💯
@dylantg excellent work on your assignment 👍 |
No description provided.