Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

hw #6

wants to merge 2 commits into from

Conversation

Miguelwoluba
Copy link

Miguel Mejia

@@ -25,7 +25,7 @@ <h1 class="title">Weather App</h1>

<h2 class="results-city"></h2>


<div class=iconPic></div>

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({

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);

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants