AnsweredAssumed Answered

disable div class

Question asked by jamesfreddyc on Jun 13, 2018
Latest reply on Jun 15, 2018 by jamesfreddyc

Should be something simple I'm missing but having difficulty setting the property an html element.  The sample below is not working as expected -- I can click the element and it seems to execute when it should be "disabled".

 

This is the widget.html:

<div class="workflow-step refine-application-boundaries" id="refine-button">
    <div class="jimu-btn workflow-step-title" data-dojo-attach-event="click:activateRefineApplicationBorderTool">2. Refine Boundaries</div> 
</div>

 

 

This is the widget.js

startup: function () {

    // called on startup.          
     document.getElementById("refine-button").disabled = true;
   

Outcomes