Questions tagged as 'javascript'

1
answer

How to display an element from a true or false within the Object? Javascript ReactJs

I have an array of objects, and I want to display value from its status which is an attribute within the object. this.state = { objetcs: [{ value: 1, status: false }, { value: 2, status: true }]...
asked by 13.06.2018 / 21:41
2
answers

Center text according to length

I'm having a hard time putting together a logic, where it will write the user name in a certificate. In order to always be centralized according to length of name, I have to adjust to margem-left , but it is allowed from 1 to 50,...
asked by 08.06.2018 / 22:29
1
answer

Enable / Disable a button if at least one checkbox is checked

I'm trying to enable a button if at least one of the six checkboxes is enabled, and disable from any checkbox is enabled. I did a function, but it only enables and does not disable if I uncheck all the checkboxes. Help me, please. <html>...
asked by 17.06.2018 / 22:28
1
answer

Can I create an application entirely with JavaScript?

I'm new to the development area (by the way, I'm not even in the area yet). I'd like to know if it's possible to integrate back and front-end entirely with Javascript pure . Because I believe that if I can ensure in pure JavaScript, I can l...
asked by 17.06.2018 / 19:47
2
answers

input declare is not accessible in javascrit and php

I created a form and I'm trying to get the data from a radio button, and an input, but I'm not able to access them via POST in php or javascript in which I'm using a function to disable fields Html <form name="cdUsuario" class="cadastroU...
asked by 15.06.2018 / 03:17
1
answer

Problem while using the while loop

I have input on a page where I type the zip code and can calculate the estimated value and time for delivery of a product for each region. Clicking the calculate button will show a box loaded via Ajax with its information, the problem...
asked by 30.06.2014 / 21:20
2
answers

Last position of a string

I have the following code: var elements = document.getElementsByTagName('*'); for (var i = 0; i < elements.length; i++) { var txt = elements[i].innerHTML.replace('Estoque1', 'Estoque Vencido'); } It captures all page tags, and...
asked by 18.06.2014 / 16:09
2
answers

Keyup function in input when loading a modal

I'm implementing a function to change the password of the logged-in user. When I load the user's password into the input component it does not validate the loaded password, which is outside the rule established by the function below. I would lik...
asked by 28.12.2017 / 13:52
2
answers

Column Visibility DataTables

I'm using DataTables to display and export my tables, one of the types of datatables I use and this one here:    link I would like to know if it is possible to set at startup which columns should be omitted and then optionally di...
asked by 04.07.2018 / 14:32
1
answer

"arguments" does not work in an arrow function?

I'm doing a simple test with arrow function , but when I use arguments it returns    Uncaught ReferenceError: arguments is not defined How can I use the parameters? const teste = () => { for(i in arguments){ retur...
asked by 01.07.2018 / 23:08