Questions tagged as 'dom'

1
answer

How to transform xml tags to table columns in html?

XML: <animal> <humano> <clientes> <cliente> <Nome_cli>Froslass</nome_cli> <Idade_cli>18</Idade_cli> <Ende_cli>Rua xyz</Ende_cli> </cliente> <c...
asked by 02.04.2018 / 16:17
1
answer

What is the difference between querySelectorAll () and getElementsByClassName ()

Apparently these two functions are similar, which is more performative? Which one should I use? What's the difference between the two? document.querySelectorAll () function funDOM() { var x = document.querySelectorAll(".example")...
asked by 22.01.2018 / 13:02
1
answer

Prevent dropdown menu closing with Right click inside it

I would like this dropdown menu not to close when you right-click inside it to open a link in a new tab. /* When the user clicks on the button, toggle between hiding and showing the dropdown content */ function myFunction() { docume...
asked by 25.01.2018 / 19:08
1
answer

Verify dynamically created checkbox

Good afternoon. I need to check if a dynamically created checkbox (is within a modal) is checked. As it was created dynamically, I thought of the following code: $(document).ready(function () { $(document).on('click', '#elemento', functi...
asked by 27.11.2017 / 16:25
1
answer

Regular expression when there are equal strings

I need to get the value "$ 0.00" in this string with a regular expression. I really do not understand expressions, I just know the basics of the basics. There are several other values on the page with "$" followed by the value, but I can not get...
asked by 16.11.2017 / 04:06
1
answer

Dynamic change in an element when resizing the window

$(document).ready(function(){ var heightJanela = $(window).height() + "px"; $("#banner-hold").css("height",heightJanela); }); I made the above code so that when the document is loaded, the div "banner-hold" gets height eq...
asked by 03.03.2017 / 19:07
2
answers

removing li using jquery

Hi, I'm doing a responsive website and I came across a problem, the desktop layout between the menus has the logo, but for mobile it does not have the logo. As the menus are in a li, I wanted to remove the specific li of the logo when it is for...
asked by 30.05.2016 / 19:23
1
answer

How to style the site's general scrollbar?

I was looking at some templates on the net and I was curious about this one . His scrollbar is not part of the browser, but I see it from the DOM. How is this?     
asked by 19.11.2014 / 01:34
1
answer

Adding Elements with JavaScript [duplicate]

I'm getting the error:    Uncaught DOMException: Failed to execute 'insertBefore' on 'Node': The   node before which the new node is to be inserted is not a child of   this node. When I try to insert one div after another using JavaScri...
asked by 26.09.2018 / 16:45
1
answer

How to create dynamic input within form

First before they say they already have answers, I looked before and did not find it. Next, I'm trying to make a form , with several dynamic inputs where the person chooses a garment in each input and in the end generates the pdf (This...
asked by 14.09.2018 / 18:38