Przyciski filtrowania parseint JavaScript
$('#form').on('submit', function (event) {
event.preventDefault();
var filterVal = parseInt($('#input').val(), 10);
var filtered = employees.filter(function (e) {
return e.salary >= filterVal;
}).map(function (e) {
return e.name;
});
console.log(filtered);
});
Pocho