I have a question about jQuery. When I am using hide/show then it's working but when i try use toggle() instead then it's doesn't work. What's the problem?
Thanks in advance. This is my code:
/* Dropdown menu - Start */
jQuery(document).ready(function() {
$('.enmenu').on('click', function(){
$('.ensettings').toggle();
return false;
});
$('html, body').on('click',function(){
$('.ensettings').hide();
});
$(".ensettings").click(function(e){
e.stopPropagation();
});
});
/* Dropdown menu - End */