As of 2025, the following seems to work:
$("#selector").val("specificvalue").data("autocomplete-selection", "specificvalue");