title: How to set onclick event in yii custom radio button?
body: <p>This is my Html for custom radio button in yii2</p>
  
  <pre><code>&lt;?php
       echo $form-&gt;field($ProductShipping, 'id_shipping')-&gt;radioList(
            ['1'=&gt;'Free', '2'=&gt;'Pickup','3'=&gt;'Country Wise','4'=&gt;'API'],
                ['item' =&gt; function($index, $label, $name, $checked, $value) {
  
                 $return = '&lt;label class="radio"&gt;';
                 $return .= '&lt;input type="radio" name="' . $name . '" value="' . $value . '"&gt;';
                 $return .= '&lt;label&gt;' . ucwords($label) . '&lt;/label&gt;';
                 $return .= '&lt;/label&gt;';
                 return $return;
               }
             ]
           )-&gt;label(false);
  
  ?&gt;  
  </code></pre>
  
  <p>How to set an onclick event in this custom radio button?</p>