hi,
i want to use bootstrap prettyCheckable plugin (for radio and check boxes) in my yii login page.
but actually is not checkable. by clicking on it visually changed but the value of check is not changed(and system does not remember me.)
i guess the problem is on side of js file. but i have no experience in js.
can someone help me. the plugin is nice and neat.
- see attachments and this segment :
<link rel="stylesheet" href="<?php echo Yii::app()->baseUrl; ?>/css/prettyCheckable.css" />
<script src="<?php echo Yii::app()->baseUrl; ?>/js/prettyCheckable.js"></script>
<div class="row rememberMe">
<?php echo $form->checkBox($model,'rememberMe', array(
'class'=>'prettyCheck',
'style'=>'margin-left: -20px;',
'checked'=>'1',
)); ?>
<?php //echo $form->label($model,'rememberMe'); ?>
<?php echo $form->error($model,'rememberMe'); ?>
</div>
<script type="text/javascript">
$().ready(function(){
$('input.prettyCheck').prettyCheckable({
color: 'blue',
labelPosition: 'left',
label: 'remember me',
});
});
</script>
Thanks