Top "Dom" questions

The Document Object Model(DOM) is a way to programmatically refer to the elements of a markup language like XML and HTML.

Javascript: How to loop through ALL DOM elements on a page?

I'm trying to loop over ALL elements on a page, so I want to check every element that exists on …

javascript dom
change html text from link with jquery

a simple question here Is there a way to change the text "click here" <a id="a_tbnotesverbergen" href="#…

javascript jquery dom hyperlink
How can I check whether a variable is defined in JavaScript?

Which method of checking if a variable has been initialized is better/correct? (Assuming the variable could hold anything (string, …

javascript dom undefined
Get elements by attribute when querySelectorAll is not available without using libraries?

<p data-foo="bar"> How can you do the equivalent to document.querySelectorAll('[data-foo]') where querySelectorAll is …

javascript dom
document.createElement("script") synchronously

Is it possible to call in a .js file synchronously and then use it immediately afterward? <script type="text/…

javascript dom synchronous
Invariant Violation: _registerComponent(...): Target container is not a DOM element

I get this error after a making trivial React example page: Uncaught Error: Invariant Violation: _registerComponent(...): Target container is not …

javascript dom reactjs
AngularJS: How to run additional code after AngularJS has rendered a template?

I have an Angular template in the DOM. When my controller gets new data from a service, it updates the …

javascript jquery dom angularjs
Detect element content changes with jQuery

change() function works and detects changes on form elements, but is there a way of detecting when a DOM element's …

javascript jquery dom
Changing CSS Values with Javascript

It's easy to set inline CSS values with javascript. If I want to change the width and I have html …

javascript html css ajax dom
How to hide a <option> in a <select> menu with CSS?

I've realized that Chrome, it seems, will not allow me to hide <option> in a <select>. …

javascript jquery css dom