Questions tagged as 'javascript'

3
answers

Format result Price

As I can format an integer, I need to visualize it as a price. r = 100000; comision = 10000; totalp = r+comision; document.getElementById("total").value = totalp; Clearly the sum gives 110000 Resultado que quiero obtener en e...
asked by 09.04.2017 / 21:48
1
answer

Update DIV with Javascript

I have this code to update div every time, but I feel that it makes a lot of effort to my server. <script language="Javascript" type="text/javascript"> function refreshDivs(divid,secs,url) { // define our vars var divid,secs,url,...
asked by 14.04.2017 / 23:53
3
answers
3
answers

enable and disable div with hover

<div class="desabilitar"> <input type="text" > <label>Input 1</label> </div> <div class="desabilitar"> <input type="text" > <label>Input 2</label> </div> <div class="desabil...
asked by 11.08.2017 / 15:57
3
answers

Obtain item with point in class name with JQuery

It turns out that following the documentation of the library fancybox I find that to define the behavior of its elements through classes, a syntax must be followed like the following: <a href="http://www.dominio-ejemplo.mx/pagina" class="...
asked by 15.12.2015 / 02:14
1
answer

Asp.net Mvc Datatable does not render correctly

I am working with Asp.net Mvc and jquery.Datatables, and I have the following problem. in a page, I'm showing process data ... and for that I defined an html table, and with datatable I defined the following JS function to control the load....
asked by 13.12.2018 / 15:34
3
answers

Add keyup to an input when it is created by javascript and not by html

In JavaScript I'm creating a input and I'm adding classes. I want to add a keyup . // Creacion de input para "monto" var monto_inp = document.createElement("input"); monto_inp.name = "monto"; monto_inp.placeholder = "Monto"; monto...
asked by 21.08.2018 / 15:55
3
answers

Allow enter only numbers in text box with javascript for mobile devices

I have a function in JavaScript to fill out forms that allows me to only enter numbers in a text box. The problem is that it only works on computers and not on mobile devices. function validarNumero(e) { tecla = (document.all) ? e.keyCo...
asked by 14.08.2018 / 10:27
1
answer

Time control of the turns of a loop

I'm doing a practice with callback functions I have an array with three indices or positions, what I want to know is if you can make it go through the array and print the value of the first position or index of the array then wait 2 seconds to p...
asked by 27.07.2018 / 16:15
3
answers

.prop ('disabled', true); does not work in function Each JS

My idea is for my form to go through the inputs of type number and if the total of these is higher than the variable faltan then disable the inputs that are at zero. Apparently the function works to a certain extent, but when it comes to...
asked by 06.08.2018 / 17:41