{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/2929","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/2929/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/2929/comments","events_url":"https://api.github.com/repos/select2/select2/issues/2929/events","html_url":"https://github.com/select2/select2/issues/2929","id":54538824,"number":2929,"title":"How can i get all values of select2 from jquery? ","user":{"login":"RGTimothy","id":3026828,"avatar_url":"https://avatars.githubusercontent.com/u/3026828?v=3","gravatar_id":"","url":"https://api.github.com/users/RGTimothy","html_url":"https://github.com/RGTimothy","followers_url":"https://api.github.com/users/RGTimothy/followers","following_url":"https://api.github.com/users/RGTimothy/following{/other_user}","gists_url":"https://api.github.com/users/RGTimothy/gists{/gist_id}","starred_url":"https://api.github.com/users/RGTimothy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RGTimothy/subscriptions","organizations_url":"https://api.github.com/users/RGTimothy/orgs","repos_url":"https://api.github.com/users/RGTimothy/repos","events_url":"https://api.github.com/users/RGTimothy/events{/privacy}","received_events_url":"https://api.github.com/users/RGTimothy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-16T04:30:02Z","updated_at":"2016-04-20T12:01:10Z","closed_at":"2015-01-16T04:48:23Z","body":"This is my code using select2 Yii2\r\n<pre>\r\necho Select2::widget([\r\n        'model' => $model,\r\n        'attribute' => 'state',\r\n        'data' => $data,\r\n        'options' => [\r\n            'placeholder' => 'Select a state ...',\r\n            'multiple'=>true,\r\n        ],\r\n    ]);\r\n</pre>\r\nThen how can i get all of its values from jquery ($(id/class?).....;)?\r\nThank you."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/212397182","html_url":"https://github.com/select2/select2/issues/2929#issuecomment-212397182","issue_url":"https://api.github.com/repos/select2/select2/issues/2929","id":212397182,"user":{"login":"iffakhry","id":3954318,"avatar_url":"https://avatars.githubusercontent.com/u/3954318?v=3","gravatar_id":"","url":"https://api.github.com/users/iffakhry","html_url":"https://github.com/iffakhry","followers_url":"https://api.github.com/users/iffakhry/followers","following_url":"https://api.github.com/users/iffakhry/following{/other_user}","gists_url":"https://api.github.com/users/iffakhry/gists{/gist_id}","starred_url":"https://api.github.com/users/iffakhry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iffakhry/subscriptions","organizations_url":"https://api.github.com/users/iffakhry/orgs","repos_url":"https://api.github.com/users/iffakhry/repos","events_url":"https://api.github.com/users/iffakhry/events{/privacy}","received_events_url":"https://api.github.com/users/iffakhry/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T12:01:10Z","updated_at":"2016-04-20T12:01:10Z","body":"thanks @kevin-brown,\r\nbut how can I get the text in the search box?"}}