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(\'\')
There is inconsistent with your code:
$("#input-mybox").appendTo(".foo"); $("#input-myBox").val('');
"#input-myBox" || "#input-mybox" ???