No matter how you select them, you still need to do each()it if your sample code is similar to your real code. This is because you pass unique data for each function call.
But you should add tagNameto the selector, at least.
$("input[something]").each(function() {
$(this).someFunction($(this).attr("something"));
});
tagName jQuery , input.