Back

iCheck is not sendig value on submit to Controller

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

Create a Hidden filed ====HTML======== <input type="hidden" name="copy_me_val" id="copy_me_val"> =====JS======= $(document).ready(function(){ $('#copy_me').on('ifChecked', function(event){ alert(event.type + ' callback'); $("#copy_me_val").val('1'); }); $('#copy_me').on('ifUnchecked', function(event){ alert(event.type + ' callback'); $("#copy_me_val").val('0'); }); }); // Document Ready Ends here