0

Am trying to trigger the mouse over event for this below links event on document . ready but its not triggering the event.

http://codepen.io/zacharyolson/details/vzeyc#forks

Trying to do

$(document).ready(function () {
    $('.macbook').trigger('mouseover');

});

is there any way to trigger the over event. on document ready

1 Answer 1

1

You cannot trigger the same event mouseover at once on two elements

$(document).ready(function () {
    $('.macbook').trigger('mouseover');
$('.macbook-screen').trigger('mouseover');
});

So you need to consider on which element should be triggered just add trigger only to one element

$(document).ready(function () {
$('.macbook-screen').trigger('mouseover');
});
Sign up to request clarification or add additional context in comments.

1 Comment

same effect .. not triggering :(

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.