So I’m working on my Wikipedia Viewer and I’m having a lot of trouble using jQuery to pass information from my search bar into my ajax search. I think it’s something to do with the scope of my variables, because the program works when I get rid of the click event altogether and hard code my “searchTerm” variable to look up a specific term.
Hopefully that makes sense! It’s not styled at all, but here’s what I’ve got so far:
Thanks for taking a look!