Why won\'t #input-myBox clear when I select an item? It seems autocomplete is preventing my .val(\'\') to work so how can I workaround this?
#input-myBox
.val(\'\')
event.preventDefault() stops autocomplete setting the field.
event.preventDefault()
select: function (event, ui) { event.preventDefault(); var selectedObj = ui.item; $("#input-myBox").appendTo(".foo"); $("#input-myBox").val(''); }