Yii Framework Forum: Emultiselect - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Emultiselect retrieve id of selected item Rate Topic: -----

#1 User is offline   waqar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 09-February 13

Posted 12 March 2013 - 04:58 AM

i need help i am using EMultiSelect extention of yii.
it's doing job well but i want to get selected item id, I am trying to do with ajax

echo $form->labelEx($model,'pub_id');
echo $form->dropDownList($model,'pub_id', CHtml::listData(KicPublications::model()->findAll(),
'publication_id', 'publication_title'),array('multiple'=>'multiple',
'ajax' => array(
'type'=>'POST', //request type
'url'=>CController::createUrl('pub/multiselected'),
'data'=>array('publication_id'=>'js:this.value'),

//'data'=>'js:javascript statement'
//leave out the data key to pass all form values through
),'key'=>'publication_id','class'=>'multiselect','encode' => false));


when I double click the item it pass data to method multiselected at once, on other clicks pass empty data to that function...

how can I get the multi selected items id's :-(
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users