Questions tagged as 'dom'

1
answer

Select custom with conflicting script

So I have a script to change the default select of WooCommerce variations, so far so good, the problem is when a variation is out of stock, the custom select should have the same options as the default select. "Select" custom above, default be...
asked by 12.09.2018 / 16:09
1
answer

$ .fn.data - jQuery

Well, I'm banging my head on this code, I'm reading a book about jQuery, but I can not get this code to work, someone can give a hint on how to solve it, and what this method works for ($ .fn. date). $('#minhaLista li').each(function(){...
asked by 29.08.2018 / 18:15
0
answers

Clone deep node not working properly

I'm trying to duplicate the meta div of a Youtube video page. It's the div below the title div of the video and like and dislike. I want you to have 2 equals, one on top of the other. But when I use: original = document.querySelector...
asked by 06.08.2018 / 20:56
1
answer

Line break with Onclick JavaScript

I have a function, which when clicking changes an element, but also ends up breaking the line, already tried to solve using preventDefault() , but without success. When clicked on the fa-user-secret icon, onclick and line...
asked by 03.08.2018 / 17:48
0
answers

DOM taking too long to respond

Next, I have an application that loads quickly inside .NET, it takes 1.423s for the respond method, but when it goes to the VIEW it's taking longer ... It's like something is holding the screen release. Numberofrecordsreturnedpermethod:"l...
asked by 30.07.2018 / 13:36
0
answers

Copy HTML elements into a form

I want to copy the div clicked, into the form that already contains the select . For example this: var opt = document; function processar(el) { opt.getElementById('minhaLista').innerHT...
asked by 01.06.2018 / 21:41
1
answer

How do I access the DOM elements in Electron?

I'm new to Electron, and I'm trying to do a function from a click on a menu. Below is my example. index.html <!DOCTYPE html> <html lang="pt-br" dir="ltr"> <head> <meta charset="utf-8"> <title>Electron&l...
asked by 23.05.2018 / 15:53
1
answer

Access classes, id's, div's from a page with my extension

Hello, I am writing an extension with the following purpose: to access the target elements of a page (type document.querySelector ('. jobs')) and from there write the rest of the instructions. However, from what I read, content scripts access the...
asked by 17.04.2018 / 15:42
3
answers

Capture form - Correct way

I used to call a specific form by creation ID in the body of the document: document.forms[0] Only after I was able to understand what the NAME attribute is in these cases, but I was in doubt, for example, I have more than one form on the p...
asked by 27.02.2018 / 22:51
0
answers

Add items to the list and click the remove items button and add others in place

I have tried in many ways and so far without an exact success, for now what I want in the application is that I type the number in the input, and when I click enter, the numbers are aligned on the line, (preferably I wanted which is more dynamic...
asked by 02.02.2018 / 21:35