view raw
pheromix pheromix - 6 months ago 39
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 ?


This is all available callbacks of iCheck: Callbacks

you can use ifChanged event instead