You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to get the text field that is being triggered so I can check for some other form fields to pass in to the AJAX request.
For example,
$('*[data-behavior="autocomplete"]').easyAutocomplete({
url: function(term) {
var type = $(this).siblings('[name=type]').first().val(); // doesn't work
return "/search/autocomplete.json?q=" + term + "&type=" + type;
},
Is it possible?
The text was updated successfully, but these errors were encountered:
$("*[data-behavior="autocomplete"]").each(function(){
var that = $(this);
that.AutoComplete({
url: function () {
that.siblings('[name=type]').first().val()
},
});
});
I'd like to get the text field that is being triggered so I can check for some other form fields to pass in to the AJAX request.
For example,
Is it possible?
The text was updated successfully, but these errors were encountered: