Most voted "elements" questions
13 questions
Sort by count of
-
8
votes1
answer303
viewsWhat is an adjacent brother? In what does he differ from a brother knot?
One concept that confuses me when talking about HTML is that of adjacency, and of us brothers. What is the difference of brothers and adjacent brothers ?…
-
2
votes2
answers2906
viewsHow to add a class to an HTML element via Javascript. In my case, I need to add a class to the H1 element below
I need to add a class to the H1 element var div = document.createElement("div"); var h1 = document.createElement("h1"); var p = document.createElement("p"); h1.textContent = "Me Ajuda";…
-
1
votes1
answer26
viewsJavascript does not list elements
I’m having difficulties in the block that should list the elements created by Function get TributesDosElements, it was to list next to the strings, but at the end no list. <style> section…
-
1
votes1
answer309
viewsHow to use querySelectorAll() to search for a specific tag derived from an element that has an x class?
Someone could help me use the .querySelectorAll() to find all paragraph elements derived from items that have a classe x?
-
1
votes1
answer69
viewsJquery - Add element to each certain amount of other elements
I need to add a tag breaking (<br> or <hr>) each quantity of <div> dynamically arising. For PHP, i group 10 records by <div>, that is, every 10 records creates a <div>…
-
0
votes1
answer26
viewsSelecting all page elements?
I was thinking about Grid-CSS, I read on some websites about frameworks that exist for it, and that in general are very bad, because they limit the capacity of the technology, so I thought, why no…
-
0
votes1
answer91
viewsHow do I insert elements of a first vector into another second vector, at a given user position? and still print 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…
-
0
votes0
answers27
viewsJavascript: How can I get/change an attribute inside the Placeholder ="{"id":"10","Selected":false}"
Hi Guys. At first I didn’t even know you could put those attributes inside of the Placeholder, hehehe, had never seen. <div class="cellContent"…
-
0
votes1
answer385
viewsSwap the first and last element of an array by creating a new array
Why the value of Numbers[0] changes to 3 after executing the code line below? New_Numbers [0] = Numbers [Numbers.length - 1]; The complete code: public static void main(String[] args) {…
-
0
votes1
answer75
viewsWhy doesn’t my Div, raised in JS, show up?
My goal is to create a different red square every time one clicks the button. only that when one clicks on the button nothing expected happens. but one can know that the addeventlistener is working…
javascript function javascript-events create elementsasked 4 years, 9 months ago Henrique Sathler 21 -
-2
votes1
answer103
viewsHow to add values from a for structure?
So, I need to solve a little problem in my code (I’m very newb), I’m just programming because I need it for my TCC, I don’t know much python but I’m trying to turn around. On line 126 there’s that…
-
-2
votes2
answers57
viewsHow can I change the style of an html tag using another html tag in css?
So people I am making a menu and wanted to discard the use of javascript with this I would like to make that when I pressed the mouse on the menu icon automatically my #content element would win a…
-
-3
votes1
answer192
viewsHow to remove a certain element when making the site responsive?
people I know it sounds like a dumb question but here’s the thing I’m doing a responsive website and of course what I did to web won’t fit into a mobile phone. So supposing I made for web a table…