how to apply custom css and javascript to group elements

I want to apply jquery event to particular group element. I know it can be done apply custom css and js to individual element, but how can it be done for GROUP elements? I can find out group element ID in the html source code, then use jquery selector. But how do I do it within the Upfront editing page? Thank you.