Hi,
I have a simple function that is meant to clear the row highlighting in a table.
This works fine in FF & IE when ran from a mouseover event, so as you hover over a table row, the previous row is set back to white (well all of them , then the desired one is highlighted).
However, I have a few buttons, which when I click also run the clearRow() function, but the current highlighted row is not cleared in IE. It works fine in FF
The only thing the highlighting does different is to select the desired row by ID
but use a generic grab all rows by class name and clear them, to remove highlighting.
Why does the hover event call work, but the click event call doesn't?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads
I have a simple function that is meant to clear the row highlighting in a table.
Code:
function clearRow(){
$('tr.searchrow').each(function(){$(this).css('background-color','#ffffff');});
}
This works fine in FF & IE when ran from a mouseover event, so as you hover over a table row, the previous row is set back to white (well all of them , then the desired one is highlighted).
However, I have a few buttons, which when I click also run the clearRow() function, but the current highlighted row is not cleared in IE. It works fine in FF
The only thing the highlighting does different is to select the desired row by ID
Code:
$('#myID').css('background-color','#cccccc');
but use a generic grab all rows by class name and clear them, to remove highlighting.
Why does the hover event call work, but the click event call doesn't?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Dance Music Downloads