Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript If value = 10, do something Reply To: If value = 10, do something

#171463
chrisburton
Participant

@TheDoc Thanks for the help!

I solved it using .map() rather than .each().

$( ".paid" ).map(function() {

  console.log($(this).val());

  if($(this).val() == 10) {
    //do something
  }

});

I updated that pen in case you want to see it.