{"action":"created","issue":{"url":"https://api.github.com/repos/gkShine/jquery-multiselect/issues/2","labels_url":"https://api.github.com/repos/gkShine/jquery-multiselect/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gkShine/jquery-multiselect/issues/2/comments","events_url":"https://api.github.com/repos/gkShine/jquery-multiselect/issues/2/events","html_url":"https://github.com/gkShine/jquery-multiselect/issues/2","id":89289556,"number":2,"title":"Not able to post selected files.","user":{"login":"XGeohound","id":12952423,"avatar_url":"https://avatars.githubusercontent.com/u/12952423?v=3","gravatar_id":"","url":"https://api.github.com/users/XGeohound","html_url":"https://github.com/XGeohound","followers_url":"https://api.github.com/users/XGeohound/followers","following_url":"https://api.github.com/users/XGeohound/following{/other_user}","gists_url":"https://api.github.com/users/XGeohound/gists{/gist_id}","starred_url":"https://api.github.com/users/XGeohound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XGeohound/subscriptions","organizations_url":"https://api.github.com/users/XGeohound/orgs","repos_url":"https://api.github.com/users/XGeohound/repos","events_url":"https://api.github.com/users/XGeohound/events{/privacy}","received_events_url":"https://api.github.com/users/XGeohound/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-18T13:09:56Z","updated_at":"2015-07-02T11:32:18Z","closed_at":null,"body":"Dear gkShine,\r\n\r\nwould it be possible for you to explain to me quickly how to access and post the selected items from a table?\r\n\r\nThank you very much,\r\n\r\nXGeohound"},"comment":{"url":"https://api.github.com/repos/gkShine/jquery-multiselect/issues/comments/118005152","html_url":"https://github.com/gkShine/jquery-multiselect/issues/2#issuecomment-118005152","issue_url":"https://api.github.com/repos/gkShine/jquery-multiselect/issues/2","id":118005152,"user":{"login":"XGeohound","id":12952423,"avatar_url":"https://avatars.githubusercontent.com/u/12952423?v=3","gravatar_id":"","url":"https://api.github.com/users/XGeohound","html_url":"https://github.com/XGeohound","followers_url":"https://api.github.com/users/XGeohound/followers","following_url":"https://api.github.com/users/XGeohound/following{/other_user}","gists_url":"https://api.github.com/users/XGeohound/gists{/gist_id}","starred_url":"https://api.github.com/users/XGeohound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XGeohound/subscriptions","organizations_url":"https://api.github.com/users/XGeohound/orgs","repos_url":"https://api.github.com/users/XGeohound/repos","events_url":"https://api.github.com/users/XGeohound/events{/privacy}","received_events_url":"https://api.github.com/users/XGeohound/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T11:32:18Z","updated_at":"2015-07-02T11:32:18Z","body":"Dear gkShine,\r\n\r\nthank you very much for your reply. Unfortunately it is not helping me too much. \r\n```javascript\r\n    <script>\r\n  $(function () { // your function to select items is working just fine :)\r\n        $('#table_data_names').multiSelect({\r\n            actcls: 'grp-selected', \r\n            selector: 'tbody tr', \r\n            except: ['tbody'], \r\n            statics: ['.danger', '[data-no=\"1\"]'], \r\n            callback: function (items) {\r\n               $('#zip_button').show();\r\n            }\r\n        \r\n        });\r\n\t\r\n  });\r\n</script>\r\n<script>\r\n\tfunction downloadZip(){\t//The problem is, I'm want to give the selected items to this function,\r\n                            //in order to download them. But they get not transfered. \r\n\t\tvar result = new Array();\t\t\r\n    \t$('#table_data_names tr.grp-selected').each(function(index) {    \t\t\r\n\t\t\tif($(this).attr('id') == \"filetype\") {\r\n\t\t\t\tresult.push($(this).text());\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t$('#downloadList').val(result);\t\t\r\n\t\t\r\n\r\n\t\t$(\"#actionForm\").submit();\r\n```\r\n\r\nHere is the whole code again, but just with original JQuery. Here downloading works just fine, but One-Click Selection does not work and your included Ctrl-A neither. That's why I'd love to do the job with your awesome script. Do you need any further information?\r\n\r\n```javascript\r\n $(function() {\r\n  \t$('#zip_button').hide();\r\n\t$( \"#table_data_names\" ).multiselect({\r\n\t  \tdistance: 1,\r\n\t  \tstop: function( event, ui ) {\r\n\t  \t\t$( \"#table_data_names td.ui-selected\" ).siblings().addClass(\"ui-selected\");\r\n\t  \t\t$('#zip_button').show();\r\n\t  \t}\r\n\t});\r\n\r\n\tfunction downloadZip(){\t\t\r\n\t\tvar result = new Array();\t\t\r\n    \t$('#table_data_names td-ui-selected').each(function(index) {    \t\t\r\n\t\t\tif($(this).attr('id') == \"filetype\") {\r\n\t\t\t\tresult.push($(this).text());\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t$('#downloadList').val(result);\t\t\r\n\t\t\r\n\r\n\t\t$(\"#actionForm\").submit();\r\n\t}\r\n```\r\n//notice that here I'm using firstly td instead of tr and secondly the class uji-selected. I have no Idea why I have to change those in order to get your script working.\r\n\r\n\r\nPlease help,\r\n\r\nXGeohound"}}