Skip to content

Commit

Permalink
fix jquery bug :(
Browse files Browse the repository at this point in the history
  • Loading branch information
chaintng committed Jul 23, 2016
1 parent 342740c commit ff337df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index-jquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
// 1. set Listener for each filter
$("#pokemonTypeFilter").on('change', function(){
var filterPokemonType = this.value;
var filterPokemonAtk = $("#pokemonAtkFilter").value;
var filterPokemonAtk = $("#pokemonAtkFilter").val();
var filterPokemon = filterPokemonByTypeAndMinAtk(allPokemons, filterPokemonType, filterPokemonAtk);
renderPokemonList(filterPokemon);
});

$("#pokemonAtkFilter").on('keyup', function(){
var filterPokemonAtk = this.value;
var filterPokemonType = $("#pokemonTypeFilter").value;
var filterPokemonType = $("#pokemonTypeFilter").val();
var filterPokemon = filterPokemonByTypeAndMinAtk(allPokemons, filterPokemonType, filterPokemonAtk);
renderPokemonList(filterPokemon);
});
Expand Down

0 comments on commit ff337df

Please sign in to comment.