Using jquery $.each with multiple selectors
jquery
Solution
You can code:
$("button[accesskey], a[accesskey]").each(function(i) {
//code
});
Problem
I want get all the accesskeys that are on a button or link. I have the following. ``` $(":button[accesskey!=''], :a[accesskey!='']").each(function(i) { //code }); ``` You can see it here http://jsfiddle.net/QNPZU/ I thought you could have multiple selectors by separating them using a comma but the above code does not work. If I do ``` $(":*[accesskey!='']").each(function(i) { //code }); ``` it will work, but I take it there will be a performance problem if the dom is huge?