JQuery Magic Eight Ball Game - append Random Array Results to ul Element

JQuery Magic Eight Ball Game - append Random Array Results to ul Element

 

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.

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.

JQuery Page for Latest Version Download and CDN