Reputation: 163
I'd like to create a function triggerd by certain classes. I tried it like that but it didn't work :(
var ajaxlinks = $(".ajaxlink") $(".navlinks").find('a');
ajaxlinks.click(function(e){ ... }
What am I doing wrong?
Upvotes: 0
Views: 88
Reputation: 259
You can use a ,
to separate different selectors:
$(".ajaxlink, .navlinks").find("a");
Upvotes: 1