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...
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...
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:...
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...
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)...
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...
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?
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?
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...