Questions tagged as 'javascript'

1
answer

What is the Data Layer?

Most of the sites I go to if I use dataLayer on the console, it brings me some information, others do not ... For example, here in SOpt does not. I also saw that Google Tag Manager uses dataLayer to do many things. What exactly is this then an...
asked by 11.10.2018 / 21:13
1
answer

NaN error when using datatable ordering

I'm trying to create a date order in a dataTable where the format will be dd-MM-aaaa hh:MM:ss . The code below even works the problem that it gives some conversion error always in the first value that stays as NaN and when...
asked by 11.10.2018 / 19:52
1
answer

Function jQuery return message validation instead of alert

I have this function, which works perfectly: $('#FornecedorNovo').submit(function (e) { e.preventDefault(); var url = "/Fornecedor/VerificaInscricao"; var Insc = $("#InscricaoEstadual").val(); var form = this, $form =...
asked by 01.10.2018 / 16:49
1
answer

Play next video automatically

I want to make a local application that plays the videos selected by the user through checkbox , and as soon as one video is finished, the other one starts. <!DOCTYPE html> <html lang="en"> <head> <meta charset="...
asked by 30.09.2018 / 21:53
1
answer

Make Script work in loop

As I'm not aware of javascript I need a help on how to make this script work in the loop. His problem is that auto complete only works on the first line. if we add another line it will no longer work. Run the script and test you will see t...
asked by 30.09.2018 / 21:22
1
answer

Comment on .env files [closed]

Is there any way to write comments in an .env file in NodeJS projects?     
asked by 29.09.2018 / 23:24
1
answer

Assign NAV command on buttons - Owl.Carousel

I would like to understand how I pull the Owl.Carousel NAV's command for my already styled buttons on a separate div. Example: Samplecode: $(document).ready(function(){ $('.owl-carousel').owlCarousel({ loop:true, margin:10,...
asked by 13.09.2018 / 00:16
1
answer

Read user input without using the prompt function

The only way to assign a value to a variable by the user in JavaScript is to use the prompt function or is there any other? Because in Python, for example, we can do this: numero = int(input("Informe um número: ")) I ask this, bec...
asked by 30.09.2018 / 18:57
1
answer

JQuery Tab System Javascript

I have a system with tabs in JS / JQuery , which unites it with Owl.Carousel , I have tried everything to fix the error and I do not understand what may be causing the conflict. When I load the page, and I change the tab for the first tim...
asked by 15.09.2018 / 08:20
2
answers

Jquery click event

I'm trying to use jQuery to do something like: if($('#id').click) { //Eu sei que quando este elemento //for clicado ele vai fazer algo aqui, mas, eu queria em um //outro momento fora da função saber se foi clicado ou não } if($(...
asked by 24.10.2018 / 22:04