2013-12-11 09:16:53 3442次浏览 0条回答 0 悬赏 20 金钱
  <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怎样能获取到选中的值呢?
    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
msld
职场新人

msld

注册时间:2013-11-12
最后登录:2013-12-12
在线时长:7小时10分
  • 粉丝0
  • 金钱0
  • 威望0
  • 积分70

热门问题