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?
You can code:
$("button[accesskey], a[accesskey]").each(function(i) {
//code
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With