I'm not an expert in JavaScript but i have a simple function and is working correctly in all browsers except IE8 and 7
function setSelected() {
var backgroundPos = $('div.eventJumpToContainer').find('.selected').css('backgroundPosition').split("");
var xPos = backgroundPos[0];
var yPos = '-100px';
var toSet = xPos + ' ' + yPos;
$('div.eventJumpToContainer').find('.selected').css('backgroundPosition', toSet);
$('div.eventJumpToContainer span.jumpDate').not('.selected').each(function () {
var backgroundPos = $(this).css('backgroundPosition').split(" ");
var xPos = backgroundPos[0];
$(this).css('backgroundPosition', xPos + ' top');
});
}
When stepping through this code in IE9:
$('div.eventJumpToContainer').find('.selected').css('backgroundPosition') = ‘3600px 0%’
But in IE8, this expression is null.
I've try a lot of things but i can't get it ! Thanks in advance