I need to do just that:
If the user clicks No, system closes the message and keeps the information on the screen.
On the screen there is a limpar button and it calls the acaoLimpar() function but without displaying a dial...
I need to remove all img tags from text in javascript. So the pictures do not come.
Note: The text is random.
How to do it:
Vestibulum varius lectus a ante euismod <img src="teste2.jpg"> cursus. Nam sed semper augue, a laoreet purus....
I would like to know how to make a copy of an array without the reference.
Example of what I'd like to do:
var a = [1,2,3,4];
var b = a;
a[0] = 3;
b[0] = "nao me copie!"
console.log(a[0]) //mostrar 3
console.log(b[0]) //mostrar frase nao m...
I need help to make a timer for a page, and it must be different for each difficulty of a game, for example, for easy mode has 1 min, for intermediate has 4 min, and for difficult 8 minutes .
What does a JavaScript Bubble Event mean?
I could not understand the meaning and use of Bubbles events.
Following the W3schools reference: link
Could you please help with this reference?
I am developing a Revenue / Expense launch system and this works according to what I initially need.
Processes. Revenue Posting, adds the amount of Revenue to the account table.
Example:
Initial Account Balance = 0.00
Revenue...
What am I doing wrong in this if ?
if (angular.uppercase(nome[id]) in ['A', 'E','I', 'O', 'U']) {
....
}
If I only do this, it works. But I'll have to repeat it to others.
if (angular.uppercase(nome[id]) == 'A'){
.....
}...
Is there a regex / replace to make uppercase words in the middle of the sentence for lower case?
(Yes, I could pass everything to Lower) but it has a however in it, the rule should be ignored if the word is after point (.).
Example:
Us...