On Hover Dropdown Navigation with functioning parent link v9.0 - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

On Hover Dropdown Navigation with functioning parent link v9.0

  • On Hover Dropdown Navigation with functioning parent link v9.0
  • I'm trying to make my horizontal navigation display the sub navigation on hover but still allow the parent navigation to link to it's respective page. I have some jquery that switches the onclick event into a hover event but the link is missing from the parent item.

     

    Any help would be appreciated.

    My script

    function sethoverevents()

            $('ul.nav li.dropdown').hover(function ()
                // you could also use this condition: $( window ).width() >= 768
                if ($('.navbar-toggle').css('display') === 'none'
                    && false === ('ontouchstart' in document))

                    $('.dropdown-toggle', this).trigger('click');
               
            , function ()
                if ($('.navbar-toggle').css('display') === 'none'
                    && false === ('ontouchstart' in document))

                    $('.dropdown-toggle', this).trigger('click');
               
            );

       

     

     

  • Hello,

    This thread is a duplicate of the following one: http://www.sitefinity.com/developer-network/forums/project-feather/on-hover-dropdown-navigation-with-functioning-parent-link-v9-0

    Please post any comments in the other thread.

    Regards,
    Velizar Bishurov
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items