PATH:
home
/
letacommog
/
letaweb
/
protected
/
extensions
/
yiibooster
/
userdoc
/
select2
<?php // Issue #574: multiselect without form should send all selected elements $this->widget( 'bootstrap.widgets.TbSelect2', array( 'name' => 'group_id_list', 'data' => array('RU' => 'Russian Federation', 'CA' => 'Canada', 'US' => 'United States of America', 'GB' => 'Great Britain'), 'htmlOptions' => array( 'multiple' => 'multiple', 'id' => 'issue-574-checker-select' ), ) ); echo CHtml::endForm(); $this->widget( 'bootstrap.widgets.TbButton', array( 'label' => 'Click on me with Developer Tools opened!', 'htmlOptions' => array( 'onclick' => 'js:$.ajax({ url: "/", type: "POST", data: (function () { var select = $("#issue-574-checker-select"); var result = {}; result[select.attr("name")] = select.val(); return result; })() // have to use self-evaluating function here });' ) ) );
[+]
..
[-] empty_data.php
[edit]
[-] basic.php
[edit]
[-] 574_noform.php
[edit]
[-] 574.php
[edit]
[-] select2.xml
[edit]