Daniel Hood
Well-known member
Basically I'm trying to call
from outside of the AutoComplete class.
More specifically I need to call it for just the search bar. I tried specifying $('#QuickSearchQuery').AutoComplete.results.selectResult(-1, true); but that returns that AutoComplete is not a function. I also tried XenForo['AutoComplete']($('#QuickSearchQuery')).
Is there a way to call methods within functions that run through XenForo.register()?
Code:
XenForo.AutoComplete.results.selectResult(-1, true);
More specifically I need to call it for just the search bar. I tried specifying $('#QuickSearchQuery').AutoComplete.results.selectResult(-1, true); but that returns that AutoComplete is not a function. I also tried XenForo['AutoComplete']($('#QuickSearchQuery')).
Is there a way to call methods within functions that run through XenForo.register()?