Closed MJPA closed 11 years ago
There's a few ways you can focus in to a facet. First off, decide which one you want, and then do one of these types of focus on the facet (try this on demo.html
):
visualSearch.searchBox.facetViews[0].selectText();
visualSearch.searchBox.facetViews[0].enableEdit();
visualSearch.searchBox.facetViews[0].setCursorAtEnd();
Have tried with VS.app.searchBox.focusSearch(e) but obviously that requires an event. Tried faking the event but no such luck.
Doesn't seem possible to focus the search box with jQuery?