tonybolzan / yii-select2

Wrapper Widget to use jQuery Select2 in Yii application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello

EugeneBogun opened this issue · comments

Hello.
How can use jQuery to select the desired value in select2, your yii plugin?

My plugin is a wrapper to the http://ivaynberg.github.io/select2/, so you can use Select2 normally in your javascript code.

var values = $("#id").select2("val");

id can be passed by htmlOptions array