I am using this plugin iCheck but I am having problem to get this thing work.
I am loading my checkboxes dynamically using jquery load();
$('#myconatainer').load('getData.php');
//getData.php
foreach($list as $itm){
$mydata .= '<div class="media">'.
'<div class="media-left">'.
'<a href="#"><img src="..." ></a>'.
'</div>'.
'<div class="media-body">'.
'<h4 class="media-heading">Heading</h4>'.
'<p><input type="checkbox" class="mycheck"></p>'.
'</div>'.
'</div>';
}
echo $mydata;
//initialize
$(function(){
$('input').iCheck({
checkboxClass: 'icheckbox_square-red',
radioClass: 'iradio_square-red'
});
});
can someone help me on this.
Thank you in advance.