The result of a selection
Menu Selecting Elements
 

getElement and getElements

This was something that was confusing me a little, but in fact it makes a lot of sense. The confusion is pretty obtuse but the selection of elements by Id not only is just a single Element (or should be if you have Id'd your Elements correctly) [i.e. case sensitive], but there is no "s", as in getElementsByClassame().

What joshtronic - alligator.io says:

A few things to mention though. First, take note that it’s get “element”, singular and not “elements”. Remember that the id attribute is supposed to be unique across your entire HTML document, so this method will only ever return a single element.

Top

External Links Disabled.

tempusfugit.me.uk is a non-commercial website. No payment or benefit is gained by the placement of links to other websites.

The External link is disabled to on this page, please visit other pages

Links

External

Top

Site design by Tempusfugit Web Design -