I have an array and I need to remove all parentheses from all the values of this array. Follow the array:
$array = array(
"chave1" => "(valor1)",
"chave2" => "(valor2)",
"chave3" => "(valor3)"
);
I need you to look li...
Notice this statement:
/*
* Faça um programa que peça um numero inteiro positivo e em seguida mostre
* este numero invertido. Exemplo:
* o 12376489
* => 98467321
*
*/
Console.Write("Informe um número inteiro para ser inv...
I would like to know the correct way, by following good practices, to create functions in jQuery.
I've used it like this:
var focusToEnd = function() {
...
}
And also like this:
; (function($) {
$.fn.focusToEnd = function() {...
Viewing the MySQL documentation you can find the mathematical function ABS (x) , which returns the absolute value of x .
mysql> SELECT ABS(2);
-> 2
mysql> SELECT ABS(-32);
-> 32
What exactly is this absolute va...
How can I make a rand() that always only generate 4 random numbers, eg: 4562, 9370, 1028 ...
My code it generates up to 4 numbers, but it has 3 times.
$presenca = rand() % 4000;
I'm making an application and I had a question:
How can I remove an element from a page with javascript without using innerHTML = '' ?
For example, I want to remove a div (like the example below) and all its contents:
<div id="...
I would like to know if there is a problem in the code when I do not assign a Boolean value to disabled , readonly or required . I'm working with Java in the backend and the IDE points to an error in html when I assign a Boolean value to t...
I'm trying to create a button with an icon next to it, I'm using bootstrap framework icons, I'm breaking my head to do it, I know bootstrap has a component that does this, but it stays in another style,
EX:
I would like to know how I can change the PATH variable in the Windows environment.
I am linux user but I know that windows also allows the use of this environment variable to find its executables.
I want to split the string into 2 parts (it will always be a array divide into two parts - or two elements) whenever a vertical bar | first case).
For example: I have a string
var string = "João|23anos";
I can give...