Event handlers for Twitter Bootstrap dropdowns?

前端 未结 7 2080
不思量自难忘°
不思量自难忘° 2020-12-14 04:59

I\'d like to use a Twitter Bootstrap dropdown button:

    
7条回答
  •  天命终不由人
    2020-12-14 05:59

    Twitter bootstrap is meant to give a baseline functionality, and provides only basic javascript plugins that do something on screen. Any additional content or functionality, you'll have to do yourself.

    
    

    and then with jQuery

    jQuery("#action-1").click(function(e){
    //do something
    e.preventDefault();
    });
    

提交回复
热议问题