I have a called spn1, which has some style from inline + CSS file.
spn1
I have another called spn2
spn2
Why not applying whatever rules to both elements at the time?
Something like:
$('spn1','spn2').css({color: 'red'});
You could use multiple selectors http://api.jquery.com/multiple-selector/