Skip to content

hw#6

Open
Miguelwoluba wants to merge 2 commits intowdi-atx-12:masterfrom
Miguelwoluba:weather-app
Open

hw#6
Miguelwoluba wants to merge 2 commits intowdi-atx-12:masterfrom
Miguelwoluba:weather-app

Conversation

@Miguelwoluba
Copy link

Miguel Mejia

<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