You can add attribute multiple and change the name attribute as name[] on click event.
setTimeout(function(){$('.jtable-command-column').click(function(){
$(".access_country").attr('multiple','multiple');
$(".access_country").attr('name','country_id[]');
})},5000);
Here jtable-command-column
is edit button class. I am just firing event on click on it.
And adding attribute "multiple" and changing attribute name as country_id[]
.
This is working fine.