Questions tagged as 'dom'

2
answers

Read XML file with only one parent node

I need to import an XML file that has the following structure: <?xml version="1.0" encoding="UTF-8"?> <Registos>3</Registos> <Socios> <id>1</id> <nome>Paulo</nome> <email>pa...
asked by 26.12.2015 / 13:43
1
answer

Get value from a Span field with cURL Parser

I have a question and a problem. Well it's the following with cURL I login beauty up so far .. ok but I need to get some information that is inside the html: <span id="Number">12345678993</span> <span id="holderName">RAFAELA...
asked by 05.02.2015 / 21:21
1
answer

PHP Simple HTML DOM Parser works without id reference or class?

I want to use the PHP Simple HTML DOM Parser to remove certain links from a page generated on the frontpage the problem I found is the following as the frontpage does not generate any html element with id or class I would like to...
asked by 15.01.2015 / 13:40
0
answers

Why would it be nice to add or remove HTML elements from the DOM?

I'm starting my studies in Angular 7 and in a lesson on Structural Directives, I learned that I can add or remove elements HTML of DOM . I understand that there are 3 main , ngIf , ngSwitch and ngFor . The...
asked by 24.11.2018 / 18:32
1
answer

Relate scripts and style tags with js

Ihavethesescriptstagsthatareusedtoadjustandgivefunctionstoacarousel.ButIamaddingthecarouselassoonasIclickonabutton,butasthepagehasalreadybeenrenderedthesescriptsenduphavingnoeffectonthecarouselthatwasadded.HowcanIgetthesescripttagstobe"reread"...
asked by 02.11.2018 / 02:06
0
answers

Element without properties

See the following code snippet below: var element = document.getElementById('myDiv'); console.log('element: ', element); console.log('has tagName property: ', element.hasOwnProperty('tagName')); console.log('all properties: ', Objec...
asked by 06.07.2018 / 02:37
1
answer

AutoComplete does not work on add remove inputs

I'm developing a budget form and I add and remove rows to register products in each row and have two autocomplete fields, where you search for the product by code or by name. The first line is always fixed to start the fill and in it the autocom...
asked by 20.06.2018 / 15:27
2
answers

Removing DOM elements with removeChild ()

I'm starting with javascript, from scratch, I have this exercise where the goal is to add and remove city names in a list in html. I know little of DOM. The insert part already works, but the removal part is not working. Can anyone help me? &l...
asked by 03.01.2018 / 02:12
1
answer

I can not update the value of a String when I click on a particular button

I'm doing a project for a calculator and I can not update the screen when someone presses the number 7, for example. Here is the code: HTML: <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" con...
asked by 11.12.2017 / 20:47
1
answer

How can I create an edit button to edit a dynamically created table in javaScript

<!DOCTYPE html> <html> <head> <title>Tabela dinamica</title> <link rel="stylesheet" type="text/css" href="css/css.css"> </head> <body> <form action="" class="tabela"> <la...
asked by 14.11.2017 / 13:15