Home › Forums › JavaScript › If value = 10, do something › Reply To: If value = 10, do something
May 30, 2014 at 2:14 pm
#171463
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.