Created
December 24, 2018 02:23
-
-
Save Solijons/9b9b18f93582f85ad775c1b277fdfa8e to your computer and use it in GitHub Desktop.
Jquery practice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(() => { // func | |
$('#cart').on('click', () => { // callback func | |
$('#cartMenu').show(); // method show | |
}) | |
$('#account').on('click', () => { | |
$('#accountMenu').show(); | |
}) | |
$('#help').on('click', () => { | |
$('#helpMenu').show(); | |
}) | |
$('.dropdown-menu').on('mouseleave', () => { // calback func on mouseleave | |
$('.dropdown-menu').hide(); // method hide | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment