Questions tagged as 'javascript'

2
answers

Next tab when clicking the button

I have a registration form divided into tabs, where the tabs are disabled until the user clicks the button to enable and go to next. The problem is that the way the user is has to enable the button and then click on the next tab. I need when the...
asked by 24.02.2015 / 13:18
2
answers

How to pass value from javascript to AJAX

I have a javascript function that has AJAX code inside it. I want to pass the values from javascript to AJAX, follow the code: function validarCamposComprar() { var campoNomeEmpresa = document.getElementById('fTxtCadastroNomeEmpresa')...
asked by 02.07.2015 / 20:48
2
answers

Doubt for an activity

3) Make a Javascript code that changes the value of the text element content to "Pedro Brigatto". I have to change the value of this value in this input: <!DOCTYPE html> <html> <body> <input type="text" id="myText...
asked by 29.10.2017 / 20:05
1
answer

How to leave this generic javascript function [closed]

I have this function below and would like to leave it generic, since the values of innermap , -125,127 and 3 will vary. Instead of creating multiple functions: centralizar() ; centralizar1() ; etc., I would li...
asked by 24.11.2017 / 15:50
3
answers

if with console.log condition?

Good morning, I'm trying to make an if whose condition is the result of a console.log But I have no idea how to do the comparison because I am a beginner in JavaScript, would it be more or less like this ?? Because it always returns the conditi...
asked by 20.09.2017 / 14:36
2
answers

How to concatenate variable with empty object (between braces)?

To add value in arrays (in brackets []) use $objeto.push('novoValor'); How do I add values in variables between braces (empty object)? Example: $objeto = {} add $objeto = {"conteudo":"dado"}     
asked by 29.08.2017 / 21:46
3
answers

How to report that a particular store is open at the moment

When it is between the times described below it will be written OPEN , when it is not at that time it will be written CLOSED , in javascript, jquery, etc. How could I do this? <div class="Lojas"> <p class="Loja">Loja 1</p...
asked by 19.01.2016 / 13:31
2
answers

WebSQL will even be discontinued?

I'm having a lot of problems trying to run a program developed in HTML 5, Javascript, Ajax, JSON, IndexedDB, MySQL, PHP together with the Intel XDK IDE. The program is very simple it captures MySQL information and persists in IndexedDB, this o...
asked by 19.01.2016 / 10:51
3
answers

How to change URL objects via JavaScript?

I have a search engine on my site using Google Custom Search, and to set search by images, it is added in the URL: #gsc.tab=1 . How do I create a system in JS that can be executed via link that adds this in the URL?     
asked by 01.11.2014 / 00:01
3
answers

How to modify form fields if user input is invalid when compared to regular expression with JQuery

Well, I have the following form: <!DOCTYPE html> <html> <body> <form action="enviar.php" method="post" accept-charset="utf-8"> <label>Nome<br> <input type="text" pattern="^[a-zA-Zà-úÀ-Ú ]{2,30}$" aut...
asked by 27.08.2014 / 21:09