gpt4 book ai didi

jquery - 禁用 materialize.css 模态页脚按钮

转载 作者:行者123 更新时间:2023-11-28 02:51:33 25 4
gpt4 key购买 nike

我想禁用 materialize.css 的模态页脚按钮之一,我使用了 disabled="disabled" 但它不起作用。这是我在 jsfiddle 上的例子.

<a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a>

<!-- Modal Structure -->
<div id="modal1" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Modal Header</h4>
<p>A bunch of text</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">Agree</a>
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">I want to disable this</a>
</div>
</div>

最佳答案

<a class="waves-effect waves-light btn modal-trigger" href="#modal1">Modal</a>

<!-- Modal Structure -->
<div id="modal1" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Modal Header</h4>
<p>A bunch of text</p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">Agree</a>
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat " disabled="true" >I want to disable this</a>
</div>
</div>

关于jquery - 禁用 materialize.css 模态页脚按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46651373/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com