Most voted "dom" questions
DOM (Document Object Model - Document Object Model) is a W3C specification for a platform and language independent interface, where one can dynamically change and edit the structure, content and style of an electronic document, allowing the document to be later processed and the results of that processing, incorporated back into the document itself.
Learn more…268 questions
Sort by count of
-
-1
votes1
answer185
viewswindow.history.back()
I have a page that has a form with some data and another later page that has a back button, the idea is that when the user uses this button he does not lose the data that was entered in the form.…
-
-1
votes1
answer27
viewsManipulate the DOM and remove empty paragraph before and after a figure element?
Using some Javascript method, how could you remove elements that are soiling HTML? I have the following HTML: <div class="container-text"> <p> Teste onon onon noonnoon </p>…
-
-1
votes1
answer132
viewsContador simple em Javascript
Hello, I’m doing a very simple counter in javascript, but I’m not getting to do the for appears in the browser, is only appearing the last number of the loop. When I test in the console the result…
-
-1
votes2
answers79
viewsElement does not respond to Selenium click (Python)
I am recently working with Selenium in Python and facing a problem in my automation: Selenium identifies the element (either by xpath or any other way), but at the moment of clicking, the element…
-
-2
votes1
answer26
viewsPick element by css selector
I have a div where I want to take it by function document.querySelector but I can’t The div: <div class=" f:.9 m-b:.4 m-t:.5 d:i-b ">Conteúdo</div> I tried to make…
-
-2
votes1
answer155
viewsAdd and edit AJAX element
Good, I want to edit a trafter creating it and acquired by AJAX. When I click on create 'Tag': $('#confirmCreateBrand').click(function(){ brand = $('#createbrand_name').val(); advertiser =…
-
-2
votes1
answer54
viewsDuvida Javascript
The structure below is a guide to how the information is arranged. Implement the function in javascript listAllDoctors() which is responsible for storing the structure below containing the…
-
-2
votes1
answer54
viewsPeople who can help me, I’m a beginner in javascript,
I wanted to have the amount of clicks stored in the Torage locale, and when I returned the number of clicks continued where it left off. I tried to do so, but no alert only shows NaN: <!DOCTYPE…
-
-2
votes1
answer120
viewsHow to handle the DOM of a XHTML file with javascript
JS file: //Variáveis Globais - HTML var campoMatricula = document.querySelector(".matriculaInput"); var campoNome = document.querySelector(".nomeInput"); var campoAno =…
-
-2
votes2
answers34
viewsError with asynchronism in Javascript
Guys, have a list (on a web page) that when I scroll it carries new elements, Suppose it is the list [john, paul, peter], by giving scroll as said earlier it will hypothetically carry the elements…
-
-2
votes1
answer60
viewsjQuery Add class to dynamically generated element with click, but only on one of them and click on another, remove from the other elements
Hello, good evening friends, all good? I am studying and developing an All list,after adding an item(<li>) my <ol>, created an eventListener so that when you click on one of the items on…
-
-2
votes1
answer54
viewsHow to create a button to change a text in my html with data coming from Django’s models.py?
I’m starting to work with Django and I’m starting a test to solidify what I’ve been learning. The idea is a single page, which displays a phrase as soon as the site opens. Below the phrase, there is…
-
-3
votes1
answer93
viewsAuto-populate inputs with js / jquery
I was doing some tests with automation Javascript/jQuery and I came across some websites that it is not possible to fill in the entries correctly. This would normally work on most websites:…
-
-4
votes1
answer310
viewsDoubt with javascript college work using DOM
Good morning, guys, I have this job to do and deliver tomorrow at the junior college, but I’m completely lost on how to work this out at Notepad++. Could you please give me a light? I’ve been trying…
-
-4
votes1
answer82
viewsWould you like to take an element of a page, through its "coordinates"?
I would like your help, because I was asked to develop an extension for google Chrome, which takes a certain value of a given page, but I do not have much knowledge in programming with javascript,…
-
-4
votes1
answer86
viewsHow to add a text to an input via javascript?
I want to insert a text in the 2 image inputs but only via javascript with DOM manipulation. How do I do that?…
-
-4
votes1
answer66
viewsAdd items using Javascript?
<!DOCTYPE html> <html lang="en"> <head> <title>jsdom</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1">…
-
-10
votes2
answers290
viewsWhy should we use HTML 5 instead of Javascript?
What are the advantages and disadvantages of using HTML 5 instead of Javascript? Since, in Javascript we can do everything that HTML 5 can do, but the opposite does not happen... References:…