Kartik widget switchInput onchange event

I am using kartik widget switchInput as below




<?= SwitchInput::widget([

    'name' => 'status_13',

    'pluginOptions' => [

        'onText' => 'Yes',

        'offText' => 'No',

		'size' => 'mini',

		]

]); ?>



I want to write on change function for this check box. How can I do that?

Try to use pluginEvents property as it’s described on the website dedicated for this widget -http://demos.krajee.com/widget-details/switchinput#settings

Thanks a lot!