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(\'\')
If you just want to substitute the selected value for something else:
select: function( event, ui ) { ui.item.value = substituteWord(ui.item.value); }