-
Notifications
You must be signed in to change notification settings - Fork 17
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
hw #6
base: master
Are you sure you want to change the base?
hw #6
Conversation
@@ -25,7 +25,7 @@ <h1 class="title">Weather App</h1> | |||
|
|||
<h2 class="results-city"></h2> | |||
|
|||
|
|||
<div class=iconPic></div> |
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.
Try to stick with consistent naming conventions. All other class names are written with a hyphen so this should follow that pattern and be "icon-pic".
var city= $(".weather-city").val(); | ||
|
||
|
||
$.ajax({ |
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.
Watch your indents!
|
||
|
||
$(document).ready(function() { | ||
$('.btn-primary').on('click', requestWeatherData); |
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.
Instead of having to add a class to you can select this specific input, you could also do a form submit event listener.
Miguel Mejia