Questions tagged as 'dom'

2
answers

Changing CSS classes from JavaScript

I put you in situation, I have a div with an image of a dog, when you click on it, its sound is played and the div becomes smaller and bigger with the small class that contains that animation. The problem is that at the end of that animation...
asked by 20.01.2018 / 18:11
1
answer

How can I re-calculate a number in a table, if more details are added?

introducir el código aquí var SumaTotalCotizacionGenerales = function(){ //Obtengo la última fila ingresada en la tabla var cotizaciongenerales = $("#gastos_totales_generales"); var valor1 = cotizaciongenerales.find('input[type="text"]:eq(0...
asked by 29.12.2017 / 14:27
0
answers

JavaScript validation, HTML form

I have this function to validate a input type="text" of a form. But I get the error:    Can not read property 'value' of null function compruebaCodigo() { //Que el código tiene dos letras. var campoCodigo = document.getElem...
asked by 04.12.2017 / 19:31
1
answer

Assign value to table row cell

I have the following function that retrieves the selected row of a table: function cambios(){ var tds = $(this).find('td'); } I want to modify the values of that row and show them in the table, I was doing it this way but it does not wo...
asked by 05.10.2017 / 20:25
3
answers

Doubt about hide () and show () in jquery

I am very new to web programming and I have some doubts about the hide () and show () of jquery. There goes: We have a website where a lot of images are loaded in a grid format (about 140). When we open / load the web page, the images are...
asked by 08.09.2017 / 13:40
1
answer

Fill web forms from Chrome console

I have a web form that I have to fill in from the "Chrome" console. In the text boxes I have no problems. Use for example: txtNombre.value='nombre'; But in the list boxes of select I do not know how I can select an option from the co...
asked by 18.08.2017 / 17:35
1
answer

AJAX and tables with functions

Hello friends, I have a problem to make the code that gives me the correct information that I look for my WEB. But I told them: I have an xml file that goes something like this: <?xml version='1.0' encoding='utf-8' ?> <?xml-stylesheet...
asked by 06.06.2017 / 23:41
1
answer

Edit HTML of a different document .html

Good morning, I am trying to make an innerHTML to an HTML that is not from which the function has been called. I hope that the code is better understood. function ventana_cargada() { var ventanaPadre = window.opener; console....
asked by 13.05.2017 / 20:57
1
answer

DOM - Create an object in a form

I have the following code with DOM functions which shows a text with a background color. //Crear un div mediante DOM. function crearCajaResumen(){ var div = document.createElement("div"); var texto = document.createTextNode("Texto");...
asked by 17.05.2017 / 20:30
1
answer

php dom add an item

Hello friends, you could help me with the following. I have that HTML code: <figure class="class"><iframe src="src" width="xxx" height="xxx"></iframe></figure> But I want to add a iframe more so it looks li...
asked by 27.02.2017 / 23:35