Questions tagged as 'javascript'

3
answers

Mount RegEx to validate password

Someone would know how to mount a regex to validate numeric and alphabetic sequences of at least 4 digits, type: 1111/1234 / abcd / 4321 / dcba?     
asked by 22.10.2015 / 15:37
2
answers

Array.prototype.filter does not work as expected

I'm trying to validate fields using the Array.prototype.filter () method, but it does not seem to have any effect: <script> function isEmpty() { document.getElementById("submit").disabled = Array.prototype.filter...
asked by 16.10.2015 / 02:50
2
answers

JavaScript function becomes "undefined" in addEventListener

Reformulated question: I am trying to create a dialog box for the user, however I am having an error described as Uncaught TypeError: Cannot read property 'style' of undefined when I click the Close button generated by the code. JSFi...
asked by 29.06.2016 / 17:24
2
answers

OrderBy with accents

I'm trying to sort out a map with some data, but I can not sort words with accents. They always come last, I need a suggestion to get a map sorted. Follow the code: (function(angular) { 'use strict'; angular.module('orderByExample...
asked by 15.10.2015 / 21:21
3
answers

ScrollTOP with the field that is in focus

I need to know the px size of the input field with focus at the top of the screen. To give a scrollTOP and the field in focus stay at the top of the screen. The problem idea is as follows: I'm working on mobile, and I'm using hybrid method...
asked by 14.10.2015 / 20:38
1
answer

Access form text using javascript

I'm trying to put the value of "10" to the value of a variable, You will be able to open the button with this code but the value 10 (quantity of product) but not being changed, if I simply change the 10 by 20, when I open the button it will be 2...
asked by 25.07.2016 / 00:12
1
answer

Save number to phonebook? [closed]

I have a mobile app accessing via browser, this one has a button with a phone number. I would like that when the user clicks on this button the number would be saved in the phonebook. Thank you     
asked by 01.08.2016 / 14:54
1
answer

Passing information to an Form submit

I had asked a poorly crafted question. I would like to pass an information through a form submit, this information would be standard eg:    Password = 123 This information would not appear to the user would be broadcast in the background...
asked by 04.08.2016 / 18:42
1
answer

Equivalent to Javascript's PHP list ()

Is there a JavaScript function equivalent to list() of PHP? Suppose this JSON: { "ALERTA":[ { "TITULO":"Erro!", "MENSAGEM":"Seu nome parece estar incorreto" }, { "TITULO":"Erro!...
asked by 06.08.2016 / 09:55
1
answer

how to show and hide a div [duplicate]

Well, I have this code that I'm supposed to give to show and hide a div but it's not working for me. ' <div class="btn-group custom-btn-group" data-toggle="buttons"> <label class="btn btn-default active" &g...
asked by 03.11.2015 / 19:40