Disabled dropdown menu items using twitter bootstrap

前端 未结 8 1085
挽巷
挽巷 2021-02-03 20:16

I use markup to display a dropdown menu using Twitter Bootstrap.

8条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 20:35

    Just to add to Andres answer (don't have enough reputation to add comments :( ). You need to return false from the event handler or it might continue executing other handlers.

    $(".disabled-link").click(function(event) {
      event.preventDefault();
      return false;
    });
    

提交回复
热议问题