Bootstrap框架下按钮的禁用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bootstrap框架下按钮的禁用相关的知识,希望对你有一定的参考价值。

禁用button
$(‘button‘).addClass(‘disabled‘);  // 按钮灰掉,但仍可点击。
$(‘button‘).prop(‘disabled‘, true);  // 按钮灰掉,且不可点击。

禁用类型为button的input按钮

$(‘input[value=下一页]‘).addClass(‘disabled‘); // 按钮灰掉,但仍可点击。
$(‘input[value=下一页]‘).prop(‘disabled‘, true); // 按钮灰掉且不可点击。

以上是关于Bootstrap框架下按钮的禁用的主要内容,如果未能解决你的问题,请参考以下文章

吴裕雄 Bootstrap 前端框架开发——Bootstrap 按钮:禁用状态

你想要了解Bootstrap栅格系统的都在这儿

前端框架Bootstrap--按钮和折叠插件

前端之Bootstrap

Bootstrap简介

html Bootstrap Custom Select通过Selectpicker(Bootstrap select)https://github.com/silviomoreto/bootstra