Hello, I wanted to get html elements for a class using dojo/query within then() of queryTask. Please see below. Using query(class) return a "TypeError: query is not a function." But it worked when i used document.getElementsByClassName(classname). What did I missed on the query way? Thanks!!!
Solved! Go to Solution.
Was is the name of the parameter you assigned the require to? Is is query? It looks like you have "esri/tasks/query" as well, so did you give dojo/query a unique var?
Alex,
Do you have the require for "dojo/query" in you require list?
Thanks Robert for your quick response. Yes i double checked and do have "dojo/query" module in the list.
Was is the name of the parameter you assigned the require to? Is is query? It looks like you have "esri/tasks/query" as well, so did you give dojo/query a unique var?
lol... thank you, Robert. I have a local variable called query which caused the problem.