Questions tagged as 'javascript'

2
answers

How to validate so that there is no Na in a field?

I have the following function that is sent to call when I enter the page, but at that time I still do not have the variables full with values, since they load up to fill a few combos and reload the page. The first time you enter, the field...
asked by 12.09.2018 / 06:27
1
answer

logic problem when instantiating Javascript class

I'm starting with Javascript and POO , but when creating this class and writing the command to print in console, it only shows me the content of the object: (ƒ operacion(){ return this.n1+this.n2; }) What prevents me from receiving the...
asked by 21.09.2018 / 20:55
1
answer

My Calendar is covered by the top bar

I have the following design and as you can see the calendar of DatePicker it covers the bar that I have at the top. Calendar function code $(document).ready(function(){ var date_input=$('input[name="date_inicio"]'); //our date...
asked by 09.07.2018 / 21:20
1
answer

Some idea of how to submit the button using javascript or jquery

Here I send the data but I have to press the button and I want to do it can also be done by pressing enter: <input type="text" name="fecha" id="fecha"> <input type="text" name="direccion" id="direccion"> <div id="enviar">Envi...
asked by 13.07.2018 / 04:56
2
answers

How to assign a HotKey with JQuery to a button

This is the code of my button in HTML with CSS I would like to use JS to assign it instead of clicking for example a F7 or F8 or any combination of keys with jQuery . <div class="form-group"> <button type="submit" class="bt...
asked by 16.07.2018 / 23:30
2
answers

Discriminate data according to two attributes

I have the following arrangement: let arreglo=[{'class':1,'var':1, 'valor':50}, {'class':3,'var':2, 'valor':150}, {'class':1,'var':2, 'valor':200}, {'class':1,'var':1, 'valor':60}, {'class':3,'va...
asked by 22.07.2018 / 08:34
1
answer

filter datatable by date range

I have this datatable: $(document).ready(function() { $("#Date_search").val(""); }); var table = $('#tabla').DataTable( { deferRender: true, "autoWidth": false, "search": { "regex": true, "caseInsensiti...
asked by 03.08.2018 / 10:53
2
answers

Replace Arrow Function in ES5

Because the page where I want to insert the following line of code, how can I replace the arrow function so that I can run in the ES5 version? const frutas = ["Banana", "Orange", "Apple", "Mango","Orange"]; const contarFrutas = (valor, listaD...
asked by 30.07.2018 / 22:18
1
answer

Why the KeyCode does not work in Chrome

The function keyCode does not work in Chrome but Firefox works very well, by pressing the Tab in the input calcular you should trigger the function. here my code: $("#calcular").keypress(function(event) { var keycod...
asked by 25.07.2018 / 17:52
3
answers

Does not recognize js for the extension

I'm trying to do extensions for chrome and my html file does not recognize the js File manifest.json "content_scripts": [ { "matches": ["https://*/*"], "js": ["app.js"],// este js si lo reconoce "css": ["app.css"] } ], "brow...
asked by 24.07.2018 / 19:19