Translate the following jQuery code to YUI 2.x code
问题 Disclaimer: I have no experience using YUI at all. I was wondering how the following lines of jQuery code would look when written in YUI. Also, since YUI is using a hierarchical dependency system, which .js files need to be included in order for the code to work? 1. Given the ID of an HTML element, apply multiple style rules on the element. $('#foo').css({ color: 'yellow', background: 'black' }); 2. Chaining: given an ID of an HTML element, apply a style rule on it, add a class of bar to it,