Hi I a trying to do the following:
onMouseOver I want to: 1. remove the existing class (navLinkTD) which provides a black border around the table. 2. Add a new class (navLinkTDActive) which provides a border around the top, left and right but has a background image which changes the border on the bottom to have a small arrow.
Once the mouse has left the active region I want to: 3. I want to remove the navLinkTDActive class 4. I want to re-add the navLinkTD class
What is happening is that onMouseOver/hover all styling is removed. Once I remove the cursor from the active region then the navLinkTDActive class appears.
Here is the section of code causing the issue :-
$(".navLinkTD").hover(
function() { $(this).removeClass("navLinkTD"); },
function() { $(this).addClass("navLinkTDActive"); },
function() { $(this).removeClass("navLinkTDActive"); },
function() { $(this).addClass("navLinkTD"); }
);