I have an element with some CSS rules applied as follows:
<span class="rule1 rule2 rule3[foo/bar]"></span>
I can use jQuery to retrieve the full class list using:
var classes = $("span").attr('css');
How do I select a specific rule, in this case rule3 complete with its array contents?