How can I fake the dropdown behavior in jQuery?

Tips and tricks from Tamara Olson Designs

Want to make clicking outside of that faked dropdown encourage it to go away?


$('#show-hide-profiles').on('click', function(e) {
e.stopPropagation();
});


$(document).on('click', function (e) {
$('#list-of-profiles').hide();
});


Share Your Thoughts

About the Author

TamaraAuthorPhoto

Tamara Olson is a self-employed UX designer and WordPress developer living in New York City.

Tamara Olson Designs Case Studies