ready
Calling 2 Argument void Function ready
Calling 2 Argument void Function Line 15 demonstrates how to use JQuery calling a two argument Javascript helloWorld(name, location)
function from the ready
method. The helloWorld(name, location)
function accepts the argument values as the name
and location
variables on line 17. Those variables are then displayed in the web browser console window on lines 18 and 19. Line 21 uses the JQuery html
method to update the #helloResults
element found on line 46. For beginners learning Javascript and JQuery.
Sample Console Output
Testing to See If It Works
Open a web browser console window supports the console object for this example. In that console window you will see messages from the Javascript to help you understand what code is being executed.
If your console window was not enabled when you opened this page, then enable and refresh/reload this page to see again.