Questions tagged as 'javascript'

2
answers

PagSeguro getPaymentMethods Error

   59001 - "unknown web session id" I'm implementing Transparent PagSeguro Checkout using PHP v2 API, however I always get the error above in the JavaScript part. Their support is horrible, there is nowhere else to go. Edited: I've adde...
asked by 23.08.2016 / 03:32
1
answer

Can not read property 'length' of undefined

**HTML Binding** {{total() | currency: 'R$ ' : 2 }} **Função** $scope.total = function(){ for (var i = $scope.custos.length - 1; i >= 0; i--) { total += $scope.custos[i].valor+total; } return total; }...
asked by 24.08.2016 / 19:20
1
answer

Placeholder does not identify characters

I have a problem with a placeholder and a login page, <div class="group"> @Html.TextBoxFor(t => t.Email, new { required = "required" } ) <span class="highlight"></span><span class="bar"></span>...
asked by 24.08.2016 / 16:33
1
answer

Javascript Popups / Modes

Well, I've been trying for 2 days to do the following: When you click on the register button, open the registration mode, when clicking the information button, open it When you click to go back, both will receive display none When...
asked by 01.10.2016 / 21:27
2
answers

Checking if element is visible with jQuery

I need to check the visibility attribute of a div . if ($('#divFiltros').css('visibility', 'visible').val() == true) { alert(true); } else { alert(false); } How do I check and enter this if of the example?     
asked by 04.10.2016 / 15:26
2
answers

Fill multiple select with data stored in the bank

Good afternoon everyone. I need guidance from you regarding select multiple. I have the select below: <select class="form-control" id="dias_semana" multiple name="diasDaSemana[]" required> <option value="">Selecione...</op...
asked by 03.10.2016 / 18:58
1
answer

I can not use CSS pseudo-element with JQuery

I want you to click on the pseudo-element, the menu opens, I tried several codes but none worked, the last one I tried was this: $('#overlay-menu').after().click(function(){ var menu = $('#overlay-menu'); //Antes eu tentei usar o this, por...
asked by 11.08.2016 / 16:31
1
answer

Doubts on how to validate CNPJ with Jqyery

After searching in some sites, I found a CNPJ validation code in jquery, I would like to make this function active when clicking the email field, if the cnpj field is not filled or the value is invalid, I want it to display a alert . My...
asked by 12.08.2016 / 02:22
2
answers

setTimeout does not work with For in javascript [duplicate]

I'm starting in the javascript world and I'm having a question that kills my logic. I want a method to repeat a number of times every time, but not working when using the For loop, can you help me understand it please? var repetirFunc =...
asked by 22.09.2016 / 18:08
1
answer

Open multiple tabs on a JavaScript link

This script is to open two tabs or more in the browser on a single link. Clicking on the link opens only one new tab and the other is blocked as pop-ups by the browser. How do I not to block? Or is there another way to open multiple tabs in a si...
asked by 11.08.2016 / 17:09