Questions tagged as 'javascript'

1
answer

How do I prevent the content of the page from going too high with the shrunken header?

Well, I have this web where I put a header that shrinks when downloading on the page, but I have the problem that when a lot of the content of the web goes down, it goes up below the header and I do not know what to put in order to avoid that wi...
asked by 15.08.2017 / 16:55
1
answer

How to save the variable, without changing the scope

Is it impossible to save the value of the variables without placing them outside? For the purpose of doing the function in an iterative way, do it recursively. If there really is no way, why? Save the value of the variables that are inside...
asked by 11.10.2017 / 02:23
1
answer

Droppable element accept and scope differences

In the following code, I have 4 Droppable elements that accept only some Draggable elements. The acceptance of 2 of these elements is declared with 'scope' and in the other 2 is declared with 'accept'. What difference does it make in one w...
asked by 10.10.2017 / 23:21
1
answer

How do I add a number to the results of a loop?

Hi, I have a decreasing while loop to which I have to add 3 each time I show an even number, but I can not get it added to me. What am I doing wrong? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <ti...
asked by 04.08.2017 / 21:45
1
answer

create clock and insert it into a table

Hello, I'm looking to make a clock that prints the time, minutes and seconds with a while loop and insert it into a table. I'm new to this, and I do not really know how to do it. I would appreciate very much if they would give me help....
asked by 05.08.2017 / 01:28
3
answers

How to add the numerical part ONLY to one digit?

var a = "20px"; setInterval(function(){ a += 20; console.log(a); },1000); How would you add only the numerical part? , since with my code it remains as string     
asked by 19.08.2017 / 02:59
2
answers

Match two models in mongodb

I am in trouble to be able to relate two models in mongodb. I was looking for some forums the methods populate() , aggregate() . But they do not work for that matter (I think). I have model A {title : 'hola'} , model B...
asked by 10.08.2017 / 14:12
1
answer

Tag-it.js not working

I'm trying to get this example from Tag-it.js I use the external files that it says in the Example. <link href="http://aehlke.github.io/tag-it/css/jquery.tagit.css" rel="stylesheet"> <script src="http://aehlke.github.io/tag-it/js...
asked by 02.08.2017 / 23:01
2
answers

Remove nodes created using EventListener

A few weeks ago I started with JavaScript , I just learned how to use EventListener , please help me, how can I remove a node created using EventListener ?. In the example I will show below I assign an EventListener to a bu...
asked by 02.08.2017 / 04:00
2
answers

jQuery, problem when deselecting the selected item in several dropboxes that change dynamically

I have several dropboxes and I want that when selecting an option in one of them, the rest change to that option. The id's and the waltz change dynamically, so I can not use them to select them, instead I use the text of each option, which...
asked by 02.08.2017 / 14:45