title: Yii2: How to disable radio button
body: <pre><code>&lt;?php  echo $form-&gt;field($model, 'status')-&gt;radioButtonGroup($model-&gt;getStatusList(), ['disabledItems'=&gt;['APPROVED','DIGITAL','CDP']], 
      [
      'class' =&gt; 'btn-group-sm',
      'itemOptions' =&gt; ['labelOptions' =&gt; ['class' =&gt; 'btn btn-warning']]
      ]); 
      ?&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/p6rzw.jpg" alt="enter image description here"></p>
  
  <p>I want to disable all previous radio buttons from currently checked.
  As I showed in image status 'APPROVED','DIGITAL','CDP' are disabled because status print is selected. I have put these three status in disabled function but how to achieve this using jQuery.</p>
  
  <p>PS- Using Yii2</p>
  
  <p>HTML Code-</p>
  
  <pre><code>&lt;div class="form-group field-status-status required"&gt;
      &lt;label class="control-label" for="status-status"&gt;Status&lt;/label&gt;
      &lt;input type="hidden" name="Status[status]" value=""&gt;
      &lt;div id="status-status" class="btn-group" data-toggle="buttons"&gt;
          &lt;label class="btn btn-default disabled"&gt;
              &lt;input type="radio" name="Status[status]" value="APPROVED" disabled&gt; Approved&lt;/label&gt;
          &lt;label class="btn btn-default disabled"&gt;
              &lt;input type="radio" name="Status[status]" value="DIGITAL" disabled&gt; Digital&lt;/label&gt;
          &lt;label class="btn btn-default disabled"&gt;
              &lt;input type="radio" name="Status[status]" value="CDP" disabled&gt; CDP&lt;/label&gt;
          &lt;label class="btn btn-default"&gt;
              &lt;input type="radio" name="Status[status]" value="PRINT"&gt; Print&lt;/label&gt;
          &lt;label class="btn btn-default"&gt;
              &lt;input type="radio" name="Status[status]" value="OTHERPROCESS"&gt; OtherProcess&lt;/label&gt;
          &lt;label class="btn btn-default"&gt;
              &lt;input type="radio" name="Status[status]" value="PACKING"&gt; Packing&lt;/label&gt;
          &lt;label class="btn btn-default"&gt;
              &lt;input type="radio" name="Status[status]" value="DISPATCH"&gt; Dispatch&lt;/label&gt;
      &lt;/div&gt;
  </code></pre>