Copy link to clipboard
Copied
Hello,
I am trying to create a functioning slideshow for my webpage. I have written the HTML, CSS and JavaScript, which is not showing any errors, so I can't work out the problem
If anyone could shed dome light I would be grateful!
1 Correct answer
Try surrounding your whole block of jQuery code in a $(document).ready function::::
$(document).ready(function() {
JQUERY GOES HERE
});
Failing that where did you get the code from?
Copy link to clipboard
Copied
Not seeing the whole of your document, I can only summise that you have not included the jQuery library to support the JavaScript that you have shown.
Copy link to clipboard
Copied
Hello,
Thank you for replying,
here is a screenshot of what I think you mean,
I originally had the google one alone but the other was recommended on another forum, not sure if that is the problem?
Best,
Alice
Copy link to clipboard
Copied
Try surrounding your whole block of jQuery code in a $(document).ready function::::
$(document).ready(function() {
JQUERY GOES HERE
});
Failing that where did you get the code from?
Copy link to clipboard
Copied
This worked! I had this written already for another function but had closed it off with });
Thank you very much!

