Say I have a function that accepts multiple jQuery objects:
workWithThreeObjs($('.content'), $('h1'), $('input[type=button]')); I define my function like this:
function workWithThreeObjs(p, h1, buttons) { ... } Inside this function, I want to apply border to all of them like this
$(p, h1, buttons).css(...); How do I do that? Right now it only applies to p.
My function code does not control what is passed into it, so I cannot change the selectors used to create the arguments. I must operate only on the jQuery objects provided.