CActiveForm的CheckBoxList的问题 [ 未指定版本 ]
<div id="addWin" style="display: none;padding: 10px;">
<?php $form = $this->beginWidget('CActiveForm', array(
'enableAjaxValidation' => false,
'htmlOptions' => array('enctype' => 'multipart/form-data')
)); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="1" style="vertical-align:middle">
<tr>
<td style="height: 30px;width:100%;text-align: left;">
<?php echo $form->checkBoxList($model, 'wid', $v, array('separator' => ' ','checkAll'=>'全选', 'labelOptions' => array('class' => 'labelForRadio'))) ?>
</td>
</tr>
<tr>
<td colspan="2" style="height: 30px;width: 280px;text-align: center;">
<div class="row buttons" style="text-align: center;">
<br>
<br>
<?php echo CHtml::Button('添加', array('onclick' => 'addAll()', 'class' => 'k-button')); ?>
<?php echo CHtml::Button('取消', array('onclick' => '$("#addWin").data("kendoWindow").close()', 'class' => 'k-button')); ?>
</div>
</td>
</tr>
</table>
<?php $this->endWidget(); ?>
</div>
我想将checkboxlist中选中的值通过js获取,在用ajax将数据通过controller传至数据库..但是js怎样能获取到选中的值呢?
共 0 个回答
没有找到数据。
msld
注册时间:2013-11-12
最后登录:2013-12-12
在线时长:7小时10分
最后登录:2013-12-12
在线时长:7小时10分
- 粉丝0
- 金钱0
- 威望0
- 积分70