js controls whether a button can be clicked. of can use an instance of disabled
- 2021-07-21 06:48:45
- OfStack
Examples are as follows:
/***
* Set whether the button is clickable
*/
function abledDownloadBtn(flag) {
var $exportChartBtn = $("#exportChartBtn");
flag ? $exportChartBtn.removeAttr("disabled") : $exportChartBtn.attr("disabled", "disabled");
}