I use the following to fire a js function:
$(document).ready(function() {
$('.gl a').do_this({
So any link within div class .gl activates function do_this.. simple
Now, i also want to fire the same function on another div link too, can I do something like:
( $('.gl a') OR $('.gm a') ).do_this({
Tried all combinations but not working as yet, or do i simply have to duplicate the whole thing for the other class?
Use Multiple selectors like so:
This will work if either one is present, or if both are present; I’m assuming this is what you want.