JSFiddle - React, Tailwind, and code Playground
HTML
<button class="btn btn-white btn-cons btn-cancel" >Take quiz test</button>
JavaScript
$(".btn-cancel").prop("disabled",true);
<button class="btn btn-white btn-cons btn-cancel" >Take quiz test</button>
$(".btn-cancel").prop("disabled",true);