Lets suppose we have an array of objects like this:
var people = [
{first: "John", last: "Doe"},
{first: "Alan", last: "Doe"},
{first: "John", last: "Black"}
];
How can we filter this array in jQuery if only one condition is selected by the user, for instance he want´s only the Doe last names (using a select form with two fields: first name, last name), hence the first name is not selected.
Thanks in advance.