Hi,
  This probably is closer to just being a plain Javascript question,
but since I'm using jquery to wrap it, I figured I'd ask it here.

I'm using the hover( fn,fn1) function to bind the hover event to my
table's TR elements upon page, load by using ready().

The HTML itself actually specifies a css class, statically, for each
TR:  "activeRow", and I'm using ( not valid code ):

        $(".activeRow").hover ( function(),  function()  etc...


  ( the activeRow css class has a different background than my
"inActiveRow" css class)


However, what if somewhere along the way I purposely remove the
"activeRow"  classname from one of the TR's and change it to
"inactiveRow"  ---   obviously the hover (mouseover and mouseout)
event should be still be bound to that TR, since this was already done
at page load ?  I'm think the DOM just keeps the event handler bound,
despite the sudden change of what css classes are set to that element.

I should probably unbind the mouseover/mouseout in the same javascript
function where I change the classname, but wanted to make sure this
was correct.
Thanks,
Steve



Reply via email to