I was making a Menu that only appears when a checkbox is checked. And to change the status of this checkbox I need to click on label of it, since input:checkbox is actually hidden.
What happens is that within la...
I have a function that calculates subtotal + ascrescimo - desconto , however I was testing a value above 999 it returns NAN .
//função para calcular o total da nota
function calcular() {
var soma1 = 0;
$(".subtotal01").e...
Let's say I get the following content that is stored in a String:
{
"client_id": 1580,
"videos": 4,
"remote_urls": [{
"url": "rtsp://aniceurl.com"
},
{
"url": "rtsp://aniceurl.com"
},...
I think a lot of you know about the Interface concept, which is very widespread in OOP, but in JavaScript in all the projects I've worked on until today I have not seen this concept. I researched a little bit about, but most posts are old, s...
I have 3 DropDownList where they have 4 items with the same valor (1,2,3,4). I need to respect that every DropDownList does not repeat the value selected in the others.
Example:
ddl0= 1
ddl1= 2 (não permitiria escolher...
These are my dataframes:
df<- as.data.frame(matrix(rexp(200),, 25))
colnames(df)<-c("A","B","C","D","E","F","G","H","I","J",
"K","L","M","N","O","P","Q","R","S","T",
"U","V","X","Z","W")
df.new<-as.data.frame(matr...
I was watching some tutorials on YouTube and noticed that some programmers leave the last statement in a block switch without the word break . For example:
switch(frutas){
case "abacaxi": abacaxi++; break;
case "morango": mo...
I need to sum all the values of a column containing in each row a specific date, that is, in the database, the values are saved with the date entered in textBox in the act of the cadastre, and I must add all the values column quantidad...
I have a working function that aims to find and group in a matrix the constants that are declared corresponding to a certain prefix:
Function:
function get_constantsByPrefix($prefix) {
foreach (get_defined_constants() as $key=>$valu...