Questions tagged as 'javascript'

2
answers

Change of alert by sweet alert

if($resultado_pendientes>=1){ echo "alert(\"Usted posee 1 solicitud cerrada parcialmente por el departamento de sistemas, valide y cierrela antes de crear otra nueva.\"); document.location=(\"./listTicketUnrevi...
asked by 09.03.2018 / 12:25
1
answer

Modify table field by clicking on the Boolean field

I have a select query to show me the exams that a student has done in a table. There are two fields in that table that I modify dynamically with select in javascript but I have another boolean field that I would like to make when clicking change...
asked by 22.03.2018 / 11:58
2
answers

show confirmation message depending on the select

I have this form and I want you to show me a confirmation message just by selecting "CANCELED" before sending the form: <form action="<?=URL?>comprobantes/actualizar_estados" method='post' id="frmEstado2"> <div class='modal-...
asked by 13.03.2018 / 16:27
2
answers

Problems with handling state and props in React JS

Hi, I'm venturing into React Js and I'm looking at how props and state behave. I'm passing some props through the ReactDom and I try to manage them and I see that they do not change their initial state. Now I'm working with the states and I see...
asked by 27.02.2018 / 16:13
1
answer

How can I get the Index of an Element with JavaScript?

How can I get the index of an element when I click on it? <p>Parrafo 1</p> <p>Parrafo 2</p> <p>Parrafo 3</p> <p>Parrafo 4</p> <p>Parrafo 5</p> var p = document.querySelectorAll('p');...
asked by 27.02.2018 / 17:47
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 / 18:10
2
answers

Autocomplete failure

I am trying to fill some inputs depending on the value of a main input ... I mean, I have a form inside a div with an id so I can call it from a js <div id="revisarCliente"> <form role="form" method="POST" class="formularioVenta"...
asked by 27.02.2018 / 23:47
2
answers

How to create rows and enter data Boostrap

the truth is I'm pretty lost with this tables and JavaScript, what I want to know is how to enter or rather create rows to a table created with Boostrap, and at the same time enter certain data. The structure of the rows to create would be this;...
asked by 31.05.2018 / 23:52
1
answer

Array is not preserved after AJAX

I have the following AJAX function that runs within for to check if certain data exist or not, if there is one variable is increased by one, if not, another variable is increased in one: si = 0; no = 0; for (var j = 1; j < parseInt...
asked by 25.02.2018 / 20:58
1
answer

Concatenate 2 repeaters of strings

'I need to make an array that makes a staircase with numerals, before the numeral there has to be a space, in the first "step" there are the same number of spaces as steps - 1, in the second - 2, and so, What I need is to concatenate the two rep...
asked by 17.02.2018 / 16:50