$('mySelector').mouseover(function() { // do something on mouseover and focus }) .focus(function(){ // trigger the mouseover event on focus $(this).trigger('mouseover') });
On Feb 4, 7:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > ... at least, that's what I think I need to do! > > Trying to do a simple a: rollover - but, being a perfectionist, I want > the rollover behaviour triggered by mouseover OR focus. And then, of > course, on mouseout OR blur. > > I tried sticking 2 events together with a | , without success. > However, this is my first attempt at 'binding' so might have done the > whole thing wrong. > > How should I do this? > > Thanks :) Cherry.