I have get reqquest like this (API key is change):
In the get request I need to pass a parameter filter[name].
My attempts:
$.get(
"http://geohelper.info/api/v1/cities?apiKey=ssss&locale[lang]=uk",
{
filter[name]: input,
},
)
But in that case, return the error:
Uncaught ReferenceError: findCity is not defined at HTMLInputElement.oninput
How to pass the parameters?