I have some trivial JavaScript to effect a style change:
sel = document.getElementById(\'my_id\');
sel.className = sel.className.replace(/item-[1-9]-selected
Not that this question needs another answer, but I found simply changing the color by a single bit forced a repaint in my particular situation.
//Assuming black is the starting color, we tweak it by a single bit
elem.style.color = '#000001';
//Change back to black
setTimeout(function() {
elem.style.color = '#000000';
}, 0);
The setTimeout proved critical to move the second style change outside the current event loop.