Using pure javascript, I wanted to click a button and trigger the events of it, but the important thing is that I do not want to call the function directly.
So far I have tried this:
var send = document.getElementsByName("send");
window.addEve...
Hello.
I have a <select> that is fed by data from the database. I need to manipulate this select and multiply it if the user wants to send two different data. Since the <option> s depends on the data coming from the...
Does anyone know if it is possible to access a policy through a controller?
The idea is for my controller to check a flag that is instantiated in the policy since it checks to show some results.
I do not have a specific code because I want...
I would like to know if anyone has experience or great knowledge about the JavaScript ExtJS framework or some equivalent.
The goal is to know if it is recommended (recommended = best option) for sites (large sites such as virtual stores and p...
I have the following data in an array
var array = [
["755", "20", "E", "274", $$hashKey: "0AK"],
["756", "20", "E", "274", $$hashKey: "0B7"],
["455", "30", "E", "159", $$hashKey: "0BQ"],
["7...
How can I transfer a JavaScript array to an array in PHP?
JavaScript Function
array of expiration dates (datasvenc) in file cadastro_contratos.php:
function calculamensalidades(){
var datasvenc = new Array(7);
var tabela;
tabela =...
How do I change the position of a div after page loading? That is, have two div's that after loading page one appears from the right and the other from the left, using MooTools.
The most similar example is this (but here with jQuery).
<...
How to get the value within this span?
<span id="Preço">199,00</span>
I need to compare it with another so that it triggers an action when it is greater than 199.00.
My question is how can I filter objects from an array by comparing the id that is inside a "sub-object". Type:
animais [
{
id: 34,
nome: baleia,
categoria: {
id: 2,
nome: mamifero
},
{...