Questions tagged as 'dom'

1
answer

How to store variable in JavaScript until reloading page?

My question is based solely on whether there is the possibility of entering a variable through a prompt() and that it is saved no matter how many times the code is run afterwards, and it is deleted only when the page is reloaded or manual...
asked by 12.08.2018 / 09:22
1
answer

How to replace only part of the value of an attribute?

I want to replace ONLY PART of the value of href attributes in a document but I can not find it well how to do it, to see if someone gives me a help. I add that I want to do it only with Javascript, without Jquery or another library. I want t...
asked by 09.09.2018 / 08:13
2
answers

When comparing two strings I always get an error (They are not the same) - Javascript - DOM

I have a problem, when comparing two strings " clickedColor " and " pickedColor " I always get the error that they are not the same and I can not see why. I appreciate all the help possible. Here the codepen: Codepen ColorRandomizer ge...
asked by 27.02.2018 / 19:10
2
answers

How can I apply color to a second column if the condition is APPROVED or REJECTED?

introducir el código aquí <style type="text/css" rel="stylesheet"> .APROBADO{ background-color: red; } .RECHAZADO{ background-color: red; } </style> function cargaPagina(pagina) { var desde = pag...
asked by 03.11.2017 / 22:44
1
answer

Help with dompdf and variable assignment [closed]

This is the code that calls the pdf <a href="pdf.php" ><i class="glyphicon glyphicon-file">Descargar-PDF</i></a> and this is the pdf.php <?php require_once'dompdf/autoload.inc.php'; // Reference the Do...
asked by 27.10.2017 / 18:17
2
answers

php dom replace html tags

Hello friends, I would like to know how to replace some html tags, replace div tags that do not have class or style per tag p I have this code: <div> Lorem ipsum dolor sit amet <div> L...
asked by 24.02.2017 / 02:29
1
answer

Access the DOM to an AJAX response

Good I need to be able to access from the DOM to a button painted with PHP, which is called from an AJAX. Since I read that the DOM would do it to the AJAX and then it gives you undefined , I can not do it the normal way. The specific butt...
asked by 26.11.2017 / 21:08
2
answers

Error modifying the DOM in Angular

I have a small error in one of my scripts working with the sun and angular <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to LearnKode - A code learning platform</title...
asked by 22.04.2016 / 15:47
1
answer

Error [object Text] when trying to put value in an input type text

A doubt maybe basic, that I thought I'd know how to solve and I'm going crazy: I want to recover a text that a div contains inside, save it in a variable and put it as a value in an input type text. When I try to do this, the text that app...
asked by 10.11.2018 / 16:50
2
answers

How do I get the value of a child element from a div

Hi I would like to know how to extract the value of a <input id="tipo"/> child from a <div class="box-header"> these elements of DOM are repeated but not their values, the values are used to set a local storage,...
asked by 23.07.2018 / 21:42