Questions tagged as 'dom'

4
answers

Functions onclick on a href - PHP - Javascript

I have the following code in a form, it belongs to a column of a table with data collected from a MySQL database. echo "<td width=\"08%\" id=\"estado".$row['ID_OBLIGATORIO']."\">" ?> <!-- Columna ESTADO del usuario. --> <...
asked by 16.11.2016 / 12:57
1
answer

add row to HTML table with JQuery in the Tbody

How can I add a row to an HTML table with JQuery? I have the following code but what it does is add a row in the part of thead of my table and the goal is to add it in the tbody. function agregarFila(Id, Nombres, ApellidoP, AppellidoM) { v...
asked by 29.08.2018 / 05:52
1
answer

Because getChildNodes gives me an unexpected result

When I get the children of the root node (books) I should get the result 3 (book, title and author) and I get 9 when applying getchildnotes (); books.xml <?xml version="1.0" encoding="UTF-8"?> <Libros> <Libro publicado_en=...
asked by 23.11.2018 / 15:49
1
answer

How to get selected item with click (id and position)

I'm trying to do some things with DOM and I have a problem that, a priori, I find no solution. Given an HTML code, I would like to obtain the type of element (div, button, table ...) and its position. Obtaining the type of element with the...
asked by 13.05.2018 / 16:32
2
answers

Remove nodes created using EventListener

A few weeks ago I started with JavaScript , I just learned how to use EventListener , please help me, how can I remove a node created using EventListener ?. In the example I will show below I assign an EventListener to a bu...
asked by 02.08.2017 / 06:00
1
answer

How to get botton and top

I'm using angularjs and I have to get the top and botton of the scroll and the top and botton of the div that contains the scroll, all this to know if the scroll is completely down, My goal is to know if the scroll is below , with the followin...
asked by 11.07.2017 / 01:55
1
answer

Add new input with autoNumeric class

I have my code: var tr = '<tr class="tr_new">'; tr +='<td><input type="text" name="txt_comi_cond1[]" class="moneda" size="10"></td>'; tr +='<td><input type="text" name="txt_comi_cond2[]" class="mone...
asked by 14.03.2017 / 01:10
1
answer

Read the names of the contents of an array and write them in an html tag

I have an array with 5 names that have a boolean state in true . When I click on each button assigned to each of them, it becomes false . What I want to get now is that those that are in false , read me the names of the cont...
asked by 02.02.2017 / 16:25
2
answers

Help to move an element with Javascript?

I want to move a div element that is in a TD from one table to another TD of the same row, and I can not do it without errors, so I consult it to see if someone can help me: <table> <thead> <th>A</th> <th>B</t...
asked by 28.10.2018 / 21:49
1
answer

Focus an item when iterating over the

I am simulating a screen reader for my web page. What I do is that I add all the elements of the DOM inside an array and then when the user presses some combination of keys in the array and using the speechSynthesis API of html5 I generate the a...
asked by 27.05.2018 / 22:32