Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 1
    PozVideos isn't an ID, but I assume that was just a typo in your selector. Other than that, it feels hacky to make assumptions on the order of classes within the string. If I add a new class to an element, I generally don't expect to break a script. If it really needs to be dynamic, to cater for a big number of colors, say, I'd consider setting a data-color="BgYellow" or something. Commented Nov 16, 2012 at 10:33