Questions tagged as 'javascript'

3
answers

How to transform data into array with JSON?

I have to get the data being accumulated in the valore variable and turn them into an array so that I can get them using HttpRequest in an HTML page. How do I do this? // Classe para chamar o JSON. function json(){ var qtd...
asked by 16.03.2015 / 15:40
1
answer

How do I get the value of a div and show it in javascript?

   The method ".getElementById ('value'). value" shows the div value as null <html> <head> <link rel="stylesheet" href="demos.css" type="text/css" media="screen" /> <script src="/sistema/jquery/plugins/RGraph/librarie...
asked by 09.03.2015 / 15:37
2
answers

how do you show only the stores in the selected neighborhood?

When I clicked on neighborhood 1, all div (store class) that did not belong to this neighborhood would be in display: none. can have several neighborhoods so I wanted a way that I did not need to update every time I had a new neighborhood <...
asked by 23.01.2016 / 16:44
2
answers

Sum of Useful Days

Is there any way to add business days to a date that does not use repeat loops (such as while and for)? I currently use this code var novaData = new Date(dataBase.valueOf()); var diasUteisRemanescente; var isFimDeSemana; var direcao; // R...
asked by 04.02.2016 / 11:04
2
answers

Add a datepicker calendar to multiple dynamically generated fields

Add Calendar Datepicker | jQuery UI and several dynamically fields? This snippet of code is only formatting the mask of input : dd / mm / yyyy , I need it to show the calendar when the user clicks inside the input field an...
asked by 24.02.2016 / 13:34
1
answer

Gradually increase a background image from a point

I need the effect below in css3 or javascript. Go to GIF WhatIalreadyhaveisjustthebasics:Theimagedoesnothavethedesiredeffectbecauseitstartedfromitsowncenter.Ineedittobefromyourbottomright,asperthe GIF above . // when DOM is ready...
asked by 11.02.2016 / 17:11
2
answers

JavaScript function to uncheck / clear all selected checkboxes from a [duplicate] button

I have several checkboxes on a form, which will be marked by the user. If you wish, you can clear all of them by clicking on a button, as shown below: Itriedtousethisfunctioninjavascript:functionmyFunctionClear(){for(i=0;i<document.selecao...
asked by 22.02.2016 / 20:23
1
answer

problems with jQuery-Mask-Plugin

I'm using jQuery-Mask-Plugin to create masks in the value fields, I liked it because it's very simple. The problem is when I try to add a negative value it does not accept the -. But I did the internet and found a way to accept it. The proble...
asked by 26.02.2016 / 20:01
2
answers

Good practices in development (Use of Float, BRs, Api) [closed]

I would like some good practice opinions on development, as I am an amateur in the subject and would like to clarify some doubts. When I'm working on the layout, I use a lot of BR and Floats tags to organize the layout, is this correct or i...
asked by 12.02.2016 / 12:44
2
answers

How do I get the value of one input and assign it to another?

I have a form with multiple input that follows a pair sequence, ie: value1 for cost1, value2 for cost2 and etc ... I need to get the input value value1 and assign the same value to cost1. But I have several inputs and think of creating a s...
asked by 18.02.2016 / 18:17