HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

JavaScript Tutorial For Beginners #35 - Changing Element Attributes

84,324 views November 14, 2015 6:03

Watch on YouTube
ChannelThe Net Ninja

Description from the creator

Yo ninjas, so in this javascript lesson I want to build on the last tutorial by introducing the getAttribute and setAttribute methods for changing the attributes on your HTML elements.

getAttribute allows us to read the value of any given attribute, and setAttribute allows us to set the attribute value to whatever we want.

If you have any questions, fire away :)

DOM OBJECT METHODS AND PROPERTIES - w3schools.com/jsref/dom_obj_all.asp

SUBSCRIBE TO CHANNEL - youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?su…

========== JavaScript for Beginners Playlist ==========

youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee…

========== CSS for Beginners Playlist ==========

youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYh…

========== HTML for Beginners Playlist ==========

youtube.com/playlist?list=PL4cUxeGkcC9ibZ2TSBaG…

========== The Net Ninja ============

For more front-end development tutorials & to black-belt your coding skills, head over to - youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or thenetninja.co.uk

========== Social Links ==========

Twitter - @TheNetNinja - twitter.com/thenetninjauk

About this tutorial

The Net Ninja published this 6:03 video tutorial on November 14, 2015. It has been watched 84,324 times on YouTube.

Category
Education
Duration
6:03
Published
November 14, 2015
Views
84,324
Likes
1,590

Tags

Share

This tutorial in other languages