I have a table, I want to load the page with its hidden content, and when I click on the title (in the example below waiting ), load the content and click on the title again the content is collected and hidden.
How can I do this?
<...
I need to break a paragraph in a set of sentences.
For example:
var paragrafo = "Sou Dr. José. Meu passatempo é assistir séries. Adoro animais!! E você?";
var frases = paragrafo.split('.')
But he ends up breaking the word Dr. too:
var...
I have a registration form, and I would like you to let me know as soon as the email is entered, if it is already in the database.
I thought of using a JavaScript function with a PHP code inside that will search if there is email in the Ban...
If the div valor0 has a value, how can I get this value in a variable to sum it up for example ??
In this example we have the valor0 div with the value 1, how do I send it to the test variable?
var teste = document.getEl...
Consider the JavaScript code below.
var r = [2, 5, 6, 18, 20, 10, 23, 12, 19, 10];
var s = [1, 5, 7, 13, 18, 21, 10, 25, 32, 17, 3];
var x = [0];
var i;
for (i = 0; i <= 9; i++) {
x[i] = r[i];
}
for (i = 0; i <= 10; i+...
I need to remove everything in front of * (asterisk)
Javascript
example:
<form>
<div class="form-row">
<div class="col">
<label>Carro</label>
<input type="text" id="nome" class="form-contr...
I have to apply the accessibility feature to increase and decrease font. I currently have 3 buttons: Small Font, Normal Font and Large Font.
The idea is that when you click each button, its function is called in javascript. And that the font...
Hello, this is my first time in stackoverflow, and I'm having a hard time, I need to know how I can detect parts of a string, for example:
String: "Definir a altura de %s para %d"
I want information % s and % d
Example:
"Definir a al...
I have a PHP application that returns me a string Json :
$cep = $_POST['cep'];
$token = '';
$url = 'http://www.cepaberto.com/api/v2/ceps.json?cep=' . $cep;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($c...