Questions tagged as 'dom'

1
answer

PHP DOM wrap blockquote between iframe tags

could you help me I have this html code: <div class="media_embed"> <blockquote class="twitter-video" data-lang="es" height="" width=""> <p dir="ltr" lang="es">"Mi cabeza está en REGRESAR a jugar y TRIUNFAR”<br...
asked by 20.01.2018 / 01:10
1
answer

Create a table using DOM with 2x2 cells - DOM functions

I am making a table of 4 squares, 2x2, and I have created the elements by means of DOM, only DOM functions can be used. Why does not the table generate me? HTML Code: <!DOCTYPE html> <html lang="en"> <head>...
asked by 30.05.2017 / 20:23
1
answer

Uncaught TypeError: Can not set property 'onclick' of null

Malfunction or bad syntax of the "onclick" event on HTML elements created in a DOM function. Why is this error? animales.js:70 Uncaught TypeError: Cannot set property 'onclick' of null Line 70 is the following: document.getElementById(...
asked by 31.05.2017 / 15:30
2
answers

undefinedbr / - Javascript - DOM - checkboxs

I have a select with four options, I can choose the ones you want, when you press the button "send" you should send the text of the selected options to div . This is my code: //Función que crea una caja con los dat...
asked by 18.05.2017 / 13:14
2
answers

Browse associative array and show through DOM

I need to go through the following array: var estrenos = []; //array con los 3 estrenos, cada ID del article se corresponde con el INDICE del array estrenos['ant'] = { Titulo : 'El Hombre hormiga', Foto : 'ant_man_large.jpg', T...
asked by 14.11.2016 / 22:20
0
answers

How to mark a checkbox of a record created dynamically in a table, jquery?

I currently generate a table dynamically in the following way: var prestamos_asignados = $('.prestamos_asignados'); $.each(response.data, function (index, value) { $('<tr/>') .append($('<td/>').addClass('label-cell nuev...
asked by 21.11.2018 / 23:03
3
answers

Delete elements by their JavaScript text content

I want to delete certain <th> elements that contain the full text "ABC". For example: <th class="text-center" width="45">ABC</th> How do you do without jQuery just using JavaScript?     
asked by 28.10.2018 / 17:21
1
answer

Set Value on input element with type="file" and ask for change event

I have an input element with type="file", but I can not set the value to the element, I also want to fire the event change; this is the code: let input_file=document.getElementsById('input'); input_file.setAttribute('value', "C:/images.jpg");...
asked by 13.09.2018 / 23:01
0
answers

Modify class name with XPATH

Basically, I have an Html file full of Divs without major variations between them. So: <div id="all-divs" class="number1"> <div class="generaldiv"> <div class="randomclass"> <input value="2874973...
asked by 14.09.2018 / 20:57
1
answer

Save DOM element as IMG

I need to save a specific DOM (div, panel, etc) element in image by pressing "X" button, like the following. When pressing the button that is saved in img all the content of that specific element, as if it were a screen printing but of a spec...
asked by 12.08.2018 / 21:48