Questions tagged as 'javascript'

1
answer

Disable Radio Button from a table based on the value of an input

I have a table whose first column is an input and the rest of the columns is a group of radio buttons. This first input can only be informed values from 1 to 4. The Radio buttons start disabled, and can only be selected if the input value is 3 o...
asked by 24.10.2017 / 20:23
3
answers

How to have security in id exposed in links - PHP + Javascript

PHP language. I have a grid where I have in each line edit buttons and delete that record with actions in javascript passing the id of that record to take the action. My problem is security related since it may have a sneaky user who changes...
asked by 12.01.2017 / 14:17
1
answer

Add columns from a table to a total field and repeat the sum with each new row

I have a table with some columns for typing values and I need to add the total of these values in an end column. The sum is easy to do, however the table and dynamics are generated several lines, and when I try to add the columns again in the...
asked by 04.01.2017 / 12:37
1
answer

Get Dynamic Element in JSON

I have the following json { "error": false, "installments": { "visa": [{ "quantity": 1, "installmentAmount": 500.00, "totalAmount": 500.00, "interestFree": true }, {...
asked by 02.01.2017 / 20:20
1
answer

How to insert specific fonts in CSS? [duplicate]

My client has passed specific fonts to a site. These are in TTF format. I'm used to using Google's fonts and there are not any there. How can I use these fonts in my CSS or HTML?     
asked by 19.11.2017 / 22:36
1
answer

Using a root directory in the NodeJS include

I'm learning NodeJS and I started to create a project just to get accustomed to developing with it, however, I'm bothered by the amount of ../../../../../ used to include a code. How can I use the root folder of my application as a path r...
asked by 29.08.2017 / 21:32
1
answer

Div cloned (jquery) elements only work on the original div

I'm using the "cloning" of divs in jquery, and inside of them I have other divs that when clicking on a button eg: DIV 1, DIV 2, DIV 3 with javascript shows the contents of each div. But when I add the new div (cloned) when I click the button to...
asked by 04.11.2016 / 01:09
1
answer

Google Chart vertical lines

I would like to add vertical lines in this chart. But I can not. I would like each group to draw a vertical line, as in this image. Mycurrentcode:google.charts.load('current',{'packages':['corechart']});google.charts.setOnLoadCallback(drawCh...
asked by 08.11.2016 / 12:39
1
answer

How to display a list coming from a Json sub-array?

I'm building divs dynamically via Javascript. I want to make her content display some information (username, emails, etc). The data is coming from the Database in Json format. The problem is that it does not display all participants. Displays...
asked by 04.11.2016 / 18:04
1
answer

How to make element appear only to Mozilla Firefox users

I have a site that is not half misaligned in Mozilla Firefox , I tested it in some browsers, including Internet Explorer , which by the way displayed the page perfectly. > Only Mozilla Firefox has this problem. At the moment I'm kind of ou...
asked by 04.11.2016 / 07:48