Questions tagged as 'javascript'

2
answers

Modal to edit Angularjs and Laravel

I'm trying to make a Modal to edit my data, using AngularJS and laravel as backend, but when I call a function in my ng-submit (), it is not invoked. This is my modal <div class="modal fade" id="mymodal" tabindex="-1" role="dialog" a...
asked by 01.06.2018 / 03:49
1
answer

ParseInt () is returning NaN

My code is as follows: arrayCods = lista.split(","); var i_rem = document.getElementById('listaUsuarios').value; //Até aqui tudo bem, a i_rem contém um valor numérico extraído do html. i_rem = arrayCods[i_rem]; console.log("Irem1: " +i_rem);...
asked by 27.05.2018 / 23:46
1
answer

Hide mobile menu after clicking

I'm having trouble hiding the menu in responsive mobile mode. There is something wrong, when I click on the link the menu disappears, but when I click to open again it is giving a bug, opens and closes quickly. What can it be? $('.navBar li a'...
asked by 02.07.2018 / 14:13
2
answers

How do I pass saved text to a variable in js?

I know to copy just use: document.execCommand("copy"); I thought that: document.execCommand("paste"); showed what was copied as a result, but this is not happening. Does anyone know how to play the contents of a copy?     
asked by 27.05.2018 / 22:44
1
answer

Back to start slide JS

Good morning! From now on I apologize for the title but I do not find any better ... Well I have a page that displays the contents in " Slide ", ie start shows the slide 1, and press the next arrow shows the next ( slide 2). Home To let se...
asked by 04.07.2018 / 12:20
1
answer

Imprimi [object HTMLInputElement]

When I mount my table dynamically only my first element is mounted correctly. The others print a strange data [object HTMLInputElement] index <!DOCTYPE html>          Product           <h1 class="text-center">Cada...
asked by 03.07.2018 / 01:30
1
answer

Open collapse via URL Bootstrap

How can I open a collapse via URL? For example: clicking 'Link 1' it goes to page 'page1' and opens the user to collapse ' link1' , in this case the collapse is with ID link1 > Just to get an idea of the environment, I put toge...
asked by 03.07.2018 / 17:45
1
answer

I'm having trouble reading a variable from a service in other controllers

I have the following problem: I have a service where I create a variable that I will manipulate and send to another controller. This is my service app.service("maissaude", [ "$rootScope", function($rootScope) { $rootScope.nomeMi...
asked by 28.06.2018 / 21:29
1
answer

Can anyone help me, I can not type in the input

So, I have these codes here, my div is draggable / moveable, however for some reason I can not type in this input, can anyone find me? Thanks in advance:) //Make the DIV element draggagle: dragElement(document.getElementById("ajuda"));...
asked by 01.07.2018 / 16:06
2
answers

How do I display the feedback message only for the focused field?

I am performing a check using jquery in order to apply this method to a more elaborate future project. There is no problem with the script, what I need is: When starting typing in the nome field for example, the feedback appears on...
asked by 29.06.2018 / 18:53