please follow this link: FIDDLE
I'm building this input (that is a search tool) and I'm putting some "tips" to select.
I use an hidden paragraph to store it better.
I have 2 problems:
Thank you in advance for your help.
for your first question, try this code
$(document).ready(function() {
var lista = $('ul#common-list');
lista.bind("mousedown", function (e) {
e.metaKey = true;
}).selectable({
stop: function () {
var result = $("input#search");
var fakeText = $('p.hidden-tips-text').empty();
$(".ui-selected", this).each(function () {
var index = $(this).text();
fakeText.append((index) + " ");
});
result.val(fakeText.text());
}
});
});