I have read the jQuery documentation on .focus() as per the pset8 instructions. However, I still do not fully understand the code below:
// hide info window when text box has focus
$("#q").focus(function(eventData) {
info.close();
});
Why does the provided pset8 source code input"eventData" within the anonymous function within focus()? None of the jQuery documentation examples input "eventData" into the anonymous function, as per the below example:
$( "#target" ).focus(function() {
alert( "Handler for .focus() called." );
});
What purpose does "eventData" serve in the cs50 source code?