In some of the codes I see, some people use the 'e' character in functions like:
function NomeDaFuncao(e){
alert("teste");
}
I would like to know how it works, what it does, and some examples where I can use it.
Python objects have some magic methods like __init__ , __str__ , __eq__ , __ne__ , __gt__ , __lt__ , __ge__ and __le__ . How to simulate these methods in javascript, when I do console.log(obj)...
Well, I've implemented google reCAPTCHA in the forms of my website, working normal, but it is possible to send the forms without selecting the captcha, how do I make it a required field before submitting as a "required"?
I have a Json object coming from the localStorage and I need it to be converted to a Long type, in the case entidadeId
idEntidade = localStorage.getItem("idEntidade");
var entidadeId = JSON.parse(idEntidade);
I would like to know how I can calculate the BMI, but first check if the textfield has been filled.
And how to format height mask to auto fill (X.XX)?
<html>
<meta charset="utf-8">
<head>
<center>
<title>testan...
This is my code is a simple form:
<!DOCTYPE html>
<html>
<head>
<title>Formulário</title>
<meta charset="utf-8" />
</head>
<body>
<form name="meu_form">
<h1>For...
I have an angular problem
I have my object
user = {name: 'Alexandre', email: '[email protected]'}
I need a way to show on the console
var attr = 'name';
var attr2 = 'email';
insira o código aqui
console.log(use...
I have a code where there is a form and the user can choose the number of lines by clicking on the buttons that are in front of the input, there is a '+' button to add a new input and '-' to remove the current input.
Follow the code:
<d...
Hello, I have 3 input that receives hours and minutes of a timepicker :
<input type="text" id="seg1" onBlur="calcular">
<input type="text" id="seg2" onBlur="calcular">
<input type="text" id="seg">
The first on...