Questions tagged as 'javascript'

4
answers

Modified disabled button using firebug

Imagine that in an HTML I have a button disabled. I can very well use Firebug to enable this button and thus do the submission. The question is: is there any way I can disable this button and not allow this submission even when I modify the...
asked by 13.02.2014 / 18:20
2
answers

How to make a constant object in JavaScript

How do I declare a constant object in JavaScript? For example: /* meu código */ object_teste = {valor:5} /* console navegador */ object_teste.valor=10; console.log(object_teste.valor) // aqui ele me retorna 10 ao invés de 5 How to leave t...
asked by 12.03.2014 / 20:57
2
answers

What is the correct way to return a switch value?

How is the correct way to return the value of switch ? HTML: <h3 id="txtOcorrenciaStatus">Status</h3> Javascript: switch(ocoStatus) { case C: $("#OcorrenciaStatus").html("Concluído"); break; case A:...
asked by 27.12.2015 / 21:30
4
answers

Stop and restart function setInterval

I have a function in javascript that starts a timer. I want to be able to stop, and reset. jsfiddle example: link var countms = 0; function start() { var counterms = setInterval(function () { countms = countms + 1; va...
asked by 12.08.2015 / 12:42
2
answers

JavaScript - Mathematical module of a value

Is there a command (or symbol) that makes the math module a value? For example: var teste = |10|-|6|;     
asked by 21.11.2017 / 18:04
1
answer

Suppressing value when calling Javascript function

The code below does not pass a value to y but the code works anyway, does anyone know how it works? I would like to learn more about, does anyone know the name of this javascript feature? function base(x) { return function produto(y)...
asked by 09.06.2017 / 20:47
3
answers

String with function name in JS

In javascript , how do I get the value of a string and use a function as a call, I save in the database which function to use in onchange of an input, exe: validaData validaCPF , diaUtil . Example: va...
asked by 09.10.2017 / 15:01
1
answer

Identify objects in an image with javascript / php [closed]

Is it possible to identify objects in a given image with Javascript or PHP? Facial recognition I know what it has, and how would it look like other objects?     
asked by 19.06.2015 / 20:57
2
answers

Check if it's the class

How do I check with JavaScript if it's really that class in CSS? Example: if(é a class) { } or another example, if not the class if(!.minhaClasse) { } Is there any way to do this with pure JavaScript?     
asked by 19.07.2017 / 20:59
2
answers

Use Bootstrap for Multiselect Dropdown with Checkbox

I found this site: ( link ) a code that uses Bootstrap to assist in creating a multi-checkable list with checkbox. The problem is that if I open the code directly in the browser it works perfectly, be it in .php, .html, .jsp, whatever. And wh...
asked by 26.06.2017 / 05:39