pheromix pheromix - 1 year ago 145
jQuery Question

AdminLTE with checkbox on change handling not working

I used the

class for my

<spring:url value="/resources/js/plugins/iCheck/all.css" var="iCheckCss" />
<link rel="stylesheet" href="${iCheckCss}">
<spring:url value="/resources/js/plugins/iCheck/icheck.min.js" var="iCheckJs" />
<script src="${iCheckJs}"></script>
<label><span id="select_all_${groupe_menu.gmnu_code}"></span> <input type="checkbox" class="minimal" id="selectToutC_${groupe_menu.gmnu_code}" /></label>
<script type="text/javascript">

$(function() {


//iCheck for checkbox and radio inputs
$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
checkboxClass: 'icheckbox_minimal-blue',
radioClass: 'iradio_minimal-blue'

$(":checkbox[id^='selectToutC_']").on("change", function(e) {



At runtime when I click the checkbox then the alert does not show ! So what is wrong ?

Answer Source

This is all available callbacks of iCheck: Callbacks

you can use ifChanged event instead

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download