get the details corresponding to particular tab on click of it

前端 未结 2 413
死守一世寂寞
死守一世寂寞 2021-01-25 13:03

Html part:

2条回答
  •  鱼传尺愫
    2021-01-25 13:22

    You should create an event handler for that such as:

    $(document).on('click', '.nav li', function() { // Clicking any li in your .nav-element
    
     loadType = $(this).children("a").prop("href"); 
     //parse out # from #BO
     // call loadUsers, loadUserDetails etc.
    
    });
    

提交回复
热议问题