I have this HTML
<div class="bot">
<span class="k-checkbox" role="presentation">
<div class="icheckbox_minimal-blue checked">
</div>
</span>
</div>
<div class="bot">
<span class="k-checkbox" role="presentation">
<div class="icheckbox_minimal-blue">
</div>
</span>
</div>
What I need is when icheckbox_minimal-blue class has class checked to add just it parent new class enable It means when the example has to be like this
<div class="bot enable">
<span class="k-checkbox" role="presentation">
<div class="icheckbox_minimal-blue checked">
</div>
</span>
</div>
<div class="bot">
<span class="k-checkbox" role="presentation">
<div class="icheckbox_minimal-blue">
</div>
</span>
</div>
See the difference that now class bot have class enable?
If you want the class change handler to be dynamic, you have to create a custom event and bind the handler to that: