program on creating a event using jQuery. Using a function by clicking it to a element it
Question:
program on creating a event using jQuery. Using a function by clicking it to a
element it will display a list (The list can be anything ) I can't get the structure yet. On the picture is what i have so far but can't make it work yet.
Are you able to help me usinf the folllowing: to fade In slowly a list?
$(document).click(function display(event) { event.preventDefault(); $(event.currentTarget).next().fadeIn("slow");
INTRUCTION THAT I RECEIVED:
-In the script.js file, add the code a new function that receives a parameter with the value of the click event:
function display(event) { }
-Inside the function, add a the code so that the jQuery selector $(event.currentTarget) is executed when the user clicks on any of the h3 elements.
- Use the Jscript .next() code inside the DOM element to display the selected courses of the h3 element
-Add the following effect in the display function to apply it to the list of courses:
function display(event) { $(event.currentTarget).next().fadeIn("slow");
Business Communication Essentials a skill based approach
ISBN: 978-0132971324
6th edition
Authors: Courtland L. Bovee, John V. Thill