Javascript Events Tutorial Part 2 - Javascript Tutorials for Beginning Web Development

2 years ago
10

In the last video, I covered Javascript Events for new Javascript Web Developers. Let's get a little more complex with those events by adding a loop and some different types of event listeners.

Here's the source code: http://codepen.io/anon/pen/doZbPQ?edi...

And here's all the key codes: https://css-tricks.com/snippets/javas...

A web developer often needs to add an event to multiple elements, but you don't want to repeat your code all over the place, so the best way to do it is to make a loop.

The good news is, since this loop just goes from i=0, i=1, i=2, etc, we can use one loop and add events to all 3 li's & inputs with it.

Visit Our Website : https://metapayclicks.com
Telegram channel : https://t.me/metapayclicks
Facebook page : https://www.facebook.com/metapayclicks/
Linkedin : https://www.linkedin.com/company/mpc-network/
Twitter : https://twitter.com/MetapayC
locals.com : https://locals.com/member/MetaPayC
Instagram : https://www.instagram.com/metapayclicks/
Tumblr : https://metapayclicks.tumblr.com/
Youtube Channel : https://www.youtube.com/channel/UCwAamK7hbpF51HcPgJSTuVA
Flickr : https://www.flickr.com/photos/196588923@N04/

Tiktok : https://www.tiktok.com/@metapayc

Dribbble : https://dribbble.com/metapayc

Vk : https://vk.com/id752424948

Reddit : https://www.reddit.com/user/MetaPayC

Loading comments...