Questions tagged as 'elementos'

1
answer

What is an adjacent sibling? In what does it differ from a brother node?

A concept that confuses me when talking about HTML is adjacency , and we sib >. What's the difference between siblings and adjacent siblings ?     
asked by 16.06.2018 / 00:50
2
answers

How to add a class to an HTML element, through JavaScript. In my case, I need to add a class in the h1 element below

I need to add a class in element H1 var div = document.createElement("div"); var h1 = document.createElement("h1"); var p = document.createElement("p"); h1.textContent = "Me Ajuda"; p.textContent = "Preciso adicionar uma classe"; d...
asked by 09.04.2018 / 02:19
1
answer

How to use querySelectorAll () to search for specific tag derived from an element that has an x class?

Would anyone help me use .querySelectorAll() to find all paragraph elements derived from elements that have a classe x?     
asked by 12.07.2018 / 02:02
1
answer

JavaScript does not list elements

I'm having problems in the block that should list the elements created by the function getAtributesElements, it was to list the strings next, but in the end it does not list. <style> section article { display: inline-blo...
asked by 03.06.2018 / 14:57
1
answer

Change the first and last element of an array by creating a new array

Why does the value of Numbers[0] change to 3 after executing the line of code below? New_Numbers [0] = Numbers [Numbers.length - 1]; The complete code: public static void main(String[] args) { System.out.print("Indique o número...
asked by 11.11.2018 / 18:24
1
answer

Selecting all page elements?

I was thinking about Grid-CSS , I read in some sites about frameworks that exist for him, and that in general are very bad, because they limit the capacity of the technology, so I thought, framework , where javascript...
asked by 29.11.2017 / 17:05
0
answers

Add attribute in an xml via notation

I have the following structure in java package xxxxx.entities; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import jav...
asked by 07.11.2018 / 17:57
0
answers

JavaScript: How can I get / change an attribute within the Placeholder="{" id ":" 10 "," selected ": false}"

Hi People . First of all, I did not even know what to put these attributes in. of the Placeholder, hehehe, had never even seen it. <div class="cellContent" placeholder="{"id":"103","selected":false}"></div> If possible any...
asked by 12.08.2018 / 18:20
0
answers

Access non-existent key of a JS object

Is there a problem accessing a key that does not exist in a JS object? Example: object = {}; object.name. No error is reported, but may I have a problem in the future?     
asked by 03.05.2018 / 19:06
1
answer

How do I insert elements of a first vector into another second vector, in a given position given by the user? and also print the step by step

Entradas - Tam do 1 vetor:5/ Elementos do 1 vetor: 1 2 3 4 5 / Elementos do 2 vetor: 6 7 8 9 10/ Pos a ser inserida: 1 Saida- 6 1 7 8 9 10 / 6 2 1 7 8 9 10 / 6 3 2 1 7 8 9 10 / 6 4 3 2 1 7 8 9 10/ 6 5 4 3 2 1 7 8 9 10 NOTE: The size of the...
asked by 28.02.2018 / 18:06