如何在Material Bootstrap上触发Javascript的涟漪效应?
尝试了几个事件,似乎都没有触发它。
HTML
<button class="btn btn-primary" id="toTrigger">Colored</button>
<button class="btn btn-primary" id="btnTrigger">Trigger Button Colored</button>
的Javascript
$('#btnTrigger').click(function(e){
$('#toTrigger').trigger( 'mousedown, mouseup, click' );
$('#toTrigger').trigger( e );
$('#toTrigger').find('.ripple-wrapper').trigger('mousedown, mouseup, click');
$('#toTrigger').find('.ripple-wrapper').trigger(e);
});