Qasim Hafeez12,730 Points
Why does it have to be .val()?
Before I watched Dave's hints in the previous video, I tried to use .text() instead of .val() and it didn't work. The images that were returned had nothing to do with the search term. When I changed it to .val(), it worked fine. Why?
Ryan Zimmerman3,854 Points
.text() looks for a specific thing called the innerText where as .val() actually works on the input element.
Kaj Clausen15,192 Points
In others words, the .val() method looks for the value the person typed into the given input.