Link to home
Start Free TrialLog in
Avatar of elliottbenzle
elliottbenzle

asked on

use jquery to remove a onMouseover event from div

I have this div: <div class="milk full" onMouseover="init(this);rattleimage()" onMouseout="stoprattle(this);top.focus()"></div>

when someone clicks on it I want to remove the onMouseover event. Is this possible? I'm thinking something like this:

$(document).ready(function(){      
      $('.milk').click(function() {
      $('.milk').removeClass('onMouseOver');
      });
});

Thanks for any help.
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial