Learn free online HTML5, javascript, and jquery Tutorials by Examples

Tuesday, 31 January 2017

Trigger in jquery











🙌🙍🙎

<span class="list">trigger</span>

<script>
 $(document).ready(function(e) {
        $('.list').mouseenter(function(e){
            console.log('fire');
        }).click(function(){
            $('.list').trigger('mouseenter');
        });
});
</script>

No comments:

Post a Comment