Questions tagged as 'javascript'

4
answers

Scroll modify the scroll, how to do it?

I did this, what it basically does is hide the scroll, is there another way to do it? div { overflow: hidden; width: 188px; } .barra { height: 80px; overflow: auto; width: 208px; border: 1px solid gray; } <div&...
asked by 15.04.2017 / 14:39
5
answers

what is the difference between using $ (). val () and document.getElementById (). value; in javascript

Well I'm a bit confused about how to get the value of the fields in Javascript, I've seen that many times you get using the code: document.getElementById("elemento").value; and others using the code: $(elemento).val() What is the diff...
asked by 13.07.2017 / 21:38
1
answer

Javascript - Convert a Timestamp string to human date format

I have the following information: Timestamp: 1481751645.455596 I want to convert it to the following format: Wed, 14 Dec 2016 21:40:45 GMT. I used the following website: link to be able to verify that the Timestamp format that I show you...
asked by 15.12.2016 / 13:44
4
answers

Convert a value obtained in Hours: Minutes: Second to Hours: Minutes

Hello, I currently have a value obtained that gives me in Hours: Minutes: Seconds what I want is to Convert it into Hours: Minutes //Valor Obtenido por el id var HoraActuales = $('input:text[id=COMD_FECHA]').val(); console.log(HoraAc...
asked by 05.10.2018 / 18:06
2
answers

Hide and show div effect

Hi, I have this script in js that adds a class to those two classes to change the style when you click on the div that has the class boxesLetras. The question is I want to remove the alphabetical class that is what I put when they click on an...
asked by 12.12.2018 / 14:07
3
answers

Help with nested Javascript functions

I have a page that loads a Javascript and contains this: (function(f) { function qb(a) { var b = g.sockets[a]; b.onopen = b.onclose = b.onmessage = b.onerror = function() {}; for (var d = 0; d < b.events.length;...
asked by 06.12.2016 / 21:35
2
answers

javascript function replace

From the following function, how do I substitute blank spaces with hyphens? <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8" /> <title>Ej funciones</title> </head> <body> <script...
asked by 25.10.2018 / 18:21
2
answers

validate data when selecting an option in a combobox

I have a select with the following data: <select name="entidad" id="entidad"> <option disabled selected>Seleccionar Entidad</option> <option>TODAS</option>...
asked by 02.04.2018 / 21:46
2
answers

How can I make it recognize "/" when concatenating with javascript?

It turns out that I can not make it show me as a url when I concatenate the url images/ that is the folder that I have to put images, the code that armo is the following. carouselImagen+= '<div class="carousel-item active" id="planti...
asked by 24.04.2018 / 15:58
2
answers

delete data from a DataTable ()

How can I delete data from DataTable() ?, when instantiating    var table = $ ('# sampleTable'). DataTable (); marks me as an error    TypeError: $ (...). DataTable is not a function Is there a way to even remove the functio...
asked by 13.03.2018 / 17:50