Questions tagged as 'javascript'

2
answers

Query [HTML]

Good afternoon, I have a problem .. I'm just starting to see html and I'm following a little pdf. The problem is that I put two buttons, one to change the color and another to change the size. The first button works but the second does not....
asked by 03.11.2017 / 21:29
1
answer

setAttribute does not work

Good afternoon, I want to put a code that deactivates an input when I have another asset. At the moment I have this and it works perfectly: <div class="col-sm-5 col-sm-offset-1"> <div class="form-group label-floating"> <inp...
asked by 02.11.2017 / 16:03
2
answers

Change radio check when clicking on an associated item

I need that when I click on the a tag the radio will check. I did a function to do it and it does it well, the problem is that if I want to check another one that I had already checked, it does not do it anymore. I need the tags in that o...
asked by 01.11.2017 / 15:54
1
answer

Problems with Sums JS

The problem that arises for sure is very simple, what I present in the code is something done with Firebase that returns all the data of my DB and places them in a table. At the end in "Total" I assigned the first "amount...
asked by 08.01.2018 / 23:00
2
answers

convert a function to ES6 [closed]

my function is: function filter_list(arrays) { return arrays.filter(function(current){ if(typeof current==="number"){ return current; } }); } console.log(filter_list([1,2,'a','b'])); I wanted to convert it like that fun...
asked by 11.01.2018 / 16:51
1
answer

perform an if of transform: translate3d

I have to perform a functionality to a carousel plugin. How do I write an if that detects if a div has the style "transform" less than "translate3d (-650px, 0, 0)". Maybe it's with javascript or jquery. <div class="owl-stage" style="transfo...
asked by 21.11.2017 / 13:19
2
answers

Block text box [closed]

I have a question about the blocking of a text box, what happens is that when loading the page, the text box is blocked, but when I save information and reload the page you can edit the information of the box that should be blocked As I handle h...
asked by 19.11.2017 / 23:55
1
answer

Send array via Ajax

I need to send an array using an ajax call. $.ajax({ type: "GET", crossDomain: true, dataType: "json", url: "http://localhost:24234/api/SendPushNotification", success: { Function(result) { Console.log(re...
asked by 23.11.2017 / 14:21
2
answers

How to apply functions in an array with javascript?

Suppose we have the following function in javascript: var modal=$("div[class*=div_modal]"); //Accedo al primer elemento del array var modal2 = modal[0]; //quiero obtener el primer div modal2.children('div').eq(0); console.log(modal2); But I...
asked by 29.10.2017 / 14:48
3
answers

Why is my eventListener (Click) executed when reloading the page and not when clicking?

This should be something simple but I am learning from this ... The issue is that it executes the whole function when reloading the page and not when clicking on the button document.getElementById("btn1").addEventListener("click", alert(...
asked by 28.10.2017 / 23:50