Questions tagged as 'javascript'

2
answers

How do I get data from a form and put it inside a JavaScript object?

Hello, I'm trying to understand JS calls from a form (so what?), but I'm having a few issues and would like some help. My form is: Nome: <input type="text" name="name"> E-mail: <input type="email" name="email"> CPF: <input...
asked by 26.07.2017 / 04:08
1
answer

How to print the value of a button in a text box using javascript

I'm trying to make a calculator in JavaScript and I want the value to appear on the screen when I click a button. Another question is how do I concatenate the name of id of button with index of for so I will add an event to...
asked by 25.07.2017 / 19:14
1
answer

How does the 'shown.bs.modal' event work?

The question is simple:    How does the% boSpp event in CSS Boostrap work?       How could I create something similar to this event? ¹ - Not how it works to use this event, but rather how the plugin has an expecific event to identify tha...
asked by 16.10.2017 / 19:36
2
answers

JavaScript - Function that changes the background of the parent element

I'm having trouble making a function. Can you help me? Home After clicking on the checkbox or on the label, it only colors the word, I would like it to also color the background of the div, I tried to make a script like: var obj = document.g...
asked by 17.10.2017 / 17:24
1
answer

Passing a javascript parameter in the middle of an append

Without much fanfare, I'm stuck on the following problem: I have the following JS code: data.forEach(function(item) { $("#bodyTabelaClientes").append( "<tr><td style = 'text-align: center'>" + item.nome...
asked by 15.05.2017 / 19:03
2
answers

Clicking on a webpage automatically

How do I simulate a click on a button on a web page automatically via JavaScript?     
asked by 18.10.2017 / 20:10
2
answers

Color chart numbers

I made a code in js and php, but I'm not finding where the color of the numbers that show the values above the points of the graph lines is set. I need to know at what time that red arrow in the numbers. Code: <div class="large-12 column...
asked by 19.10.2017 / 18:35
1
answer

jQuery Slider Range

Hello, how are you? I have a code that filters the data of a JSON with jQuey, I can filter with pre-defined values in a variable. But I wanted to use the values of a slide range of jquery ui to filter the json, only when I try to do this can not...
asked by 12.05.2017 / 17:49
1
answer

Traversing Object Objects

How to move objects in JS? Type, I have a Json { children":[ {} ] } The question is, that sometimes there are objects inside objects and sometimes not, within that children, I can have other children, and so on.     
asked by 12.05.2017 / 16:02
1
answer

Line chart being populated only with last record only in while / php

   Code: <!doctype html> <html> <head> <title>Line Chart</title> <script src="dist/Chart.bundle.js"></script> <script src="utils.js"></script> <style> canvas{...
asked by 15.05.2017 / 16:47