stuart-b
11/7/2016 - 2:22 PM

Hover on one thing, show another js

Hover on one thing, show another js

    const $mapListItem = $('.js-home-content-list-item');
    const $mapSection  = $('.js-map-section');

    $mapListItem.on('mouseenter', function () {

        const regionToShow = $(this).data('region');
        $(".js-map-section[data-region='" + regionToShow + "']").show();

    }).on('mouseleave', function () {
        $mapSection.hide();
    });