Note: Since jQuery 1.9 the input[value="banana"] selector is no longer valid, because 'value' of the input is technically not an attribute. You need to use the (far more difficult to read) .filter
E.g.
$("input").filter(function () {
return this.value === "banana";
});
See also: jQuery 1.9.1 property selector