Code: Select all
var mySourceData = [{label: 'Label 1', value: 1}, {label: 'Label 2', value: 2}];
var myTargetData = new Array();
$('#myPickList').puipicklist({
filter: true,
dragdrop: true,
filterMatchMode: 'contains',
sourceData: mySourceData,
targetData: myTargetData
});
// Fired button when I want to save my target data
$('#myPickList').click(function(){
// How can I retrieve my target data here and get the value ID?
});
HTML:
Code: Select all
<div id="atividadesPicklist">
<select name="source"></select>
<select name="target"></select>
</div>