Questions tagged as 'javascript'

1
answer

$ (this) na arrow function returns different element

Notice that the $(this) in each case below points to a different element: 1st) Function: $("button").click(function(){ $("input").val(function(){ return $(this).val(); }); }); ↑ ↑ ¯¯¯...
asked by 27.03.2018 / 00:47
2
answers

JS Error: Uncaught TypeError: Can not read property 'addEventListener' of null

I'm setting up the function to open a menu. But I'm getting the error message "Uncaught TypeError: Can not read property 'addEventListener' of null" Below is the code I'm using to open the menu with JS var veri = 1; var trigger = do...
asked by 06.04.2018 / 21:28
1
answer

How to call the previous select id

I have 2 selects, one division and the other group. When the division is selected it has to bring in the second only the groups that are part of that division. In the url variable that takes json I called python according to my view, but instead...
asked by 13.09.2017 / 16:17
1
answer

Dropdown with jQuery

I was looking for a dropdown menu with jQuery and found this example: JSFiddle It opens and closes normal when I click outside the menu or some item of it, except when I open another dropdown. Any idea what it might be?     
asked by 02.04.2017 / 06:03
2
answers

Is a notification system using setInterval + AJAX bad? [closed]

Because they are multiple requests to php + myql, little intervals (milliseconds thing) multiplied by several online users at the same time, is this impractical in the sense of computational resources? Will these XHR's all give a "bottleneck"...
asked by 24.03.2017 / 17:18
2
answers

Returning linked data

With the help of Milrak Pereira Pessoa and Wéllingthon M. de Souza, I edited my code ... I have a product code and it has 5 types and 5 descriptions. I'm trying to bring to the user the types and descriptions within the blank table. However, the...
asked by 20.10.2017 / 21:47
2
answers

Uncheck radio type input

I have two inputs of type radio . Here is the code below: <input type="radio" id="isgift0" name="isgift" value="0" class="arredondado" /> <label for="isgift0">Teste 1</label> <input type="radio" id="isgif...
asked by 27.10.2017 / 21:11
1
answer

Nodejs - How to use external variables in asynchronous functions

I'm starting in node and I still find the concept of asynchronous functions complicated. I'm using js to render templates to email in my application. The prototype is: "use strict"; const nodemailer = require('nodemai...
asked by 04.12.2016 / 23:55
1
answer

Creating dynamic thumbs

How to site such as Youtube, Netflix and many other sites do this function? Are the thumbs created at the time of the mousemove / mouseenter in the progress bar, or have they already been created before and the player only displays? If they are...
asked by 28.11.2016 / 23:45
2
answers

Clear button radio button

Good morning I would like to know how do I clear what was clicked on the radiobutton button, because in the textBox I use the name.Clear (); I would like to know how I can do it on the radio button Thank you.     
asked by 16.11.2016 / 14:24