I am facing problem while updating css class definition dynamically on some condition.
For Internet Explorer:
Because there are 36 'span' elements & I want to affect only 15 out of them which have attribute class set to 'myclass'.
These spans have ids wiz ('message1', 'message2',... 'message15'). I want to avoid code duplication & want to reuse the code at different places for varying number of spans so using for loop will become a complicated issue. please help me.