Getting the .attr of only the selected items
I need to get the .singleSelector itemID of only selected items:
$("#selectable").selectable({
filter: ".singleSelector",
selected: function( event, ui ) {
//Get the attribute of .singleSelector and show
var itemSelectedID = $('.singleSelector').attr('itemID');
$('#here').text(itemSelectedID);
});