There's no error messages is displaying,. I am using jQuery's tutorial in creating a plugin. There's no error regarding the codes, the only problem is, autoplay feature is only applied with the first carousel whenever there's a multiple instances.

Good day everyone!
Can you guys help me regarding the autoplay for my plugin (carousel)? It is working when I only have 1 carousel, but whenever I have more than 1, autoplay is only working with the first carousel.
Attached is the copy of the said plugin.
Thanks in advance!
Regards,
Regicide Del Feroz
carousel.zip

Good day everyone,
Do you have a Google Translate script, as much as possible a URL, that returns a JSON format?
For example I pass this URL using an AJAX request:
https://google-trans...sh&to=afrikaans
maybe it will return:
{"translation":"groot"}
Thanks in advance!
- Regicide Del Feroz

Good day everyone,
Do you have a Google Translate script, as much as possible a URL, that returns a JSON format?
For example I pass this URL using an AJAX request:
https://google-translate-api-domain.com/q=large〈=english&to=afrikaans
maybe it will return:
{"translation":"groot"}
Thanks in advance!
- Regicide Del Feroz

thank you guys. now I understand that JavaScript reads first the console.log() feature before the .load() function of the image. i thought .load() function will be called first before console.log() because of their order (line numbers). now I realized that .load() function will only be executed after the image was loaded and the console.log() will be executed even though the image is not yer loaded. it's like the idea of $(document).ready() and $(window).load() function.
thank you guys. i'm enlightened
God bless and more power!!
- regicide

good day everyone,
i have a problem regarding changing a global variable inside a callback function. for you to visualize my problem, here's my code:
<script>var imgWidth;$(function(){ $('img').attr('src', 'http://domain.com/link-to-new-image-src.jpg').load(function(){ window.imgWidth = $(this).width(); console.log(window.imgWidth); //outputs the size of the new image }); console.log(imgWidth); //outputs "undefined" which is my problem});</script>
hope you get it
thank you in advance and more power- regicide