Apply events to many jQuery objects
Hy all, here is my question.
I've declared three jQuery objects:
- var a=$('.first_selector'), b=$('#theID'), c=$('<htmltag/>');
I often set the same css for each one, so i wonder if there is a way to select all of these and do a single call like
- $(a,b,c).css({ rule: value});
Unfortunately the example above apply the rule on the first element only.
Any ideas?