Hi, I am cloning an element via jQuery and when I click on an item of the cloned element the click does not work, it follows example codes:
Cloning:
var template = $(".products .product.template").clone().prependTo($(".products")).removeCla...
I have the following array:
[
{
"value":"ETH",
"label":"ETH"
},
{
"value":"LTC",
"label":"LTC"
},
{
"value":"ETH",
"label":"ETH"
}
]
As you can see, there are duplicate values. Wha...
I'm developing a form with javascript / jquery in which from one question to another it goes to another page and on the last page I have to see all the data typed in the previous questions, I've already tried with serializearray (), but it just...
<button class="btn btn-conf-t btn-deletar" ng-click="deleteCategory(cat.id)"><i class="fa fa-trash"></i></button>
Here I just pass one parameter, is it possible to pass ng-click="deleteCategory(cat.id, cat.nome)"...
I created a Javascript function to get the width of a div and then add that width to 4 other divs, but that is not working.
JavaScript
window.onload = function() {
var slidewidth = document.getElementById("slideshow").offsetWid...
What's the difference between creating these two ways?
function Pessoa() {
this.nome = 'lucas'
}
and
function Pessoa() {
nome = 'lucas'
}
Is it time to instantiate to make a difference?
I'm having this error in the following function:
function formaQueryConta(cpf){
var numConta= jsonDtContasCliente[(document.getElementById("listaContas").value)-1];
console.log(typeof(cpf)); //Diz que é String
console....
The script that follows should allow the user to type the combination ALT + C where it would open a prompt and then enter a code to redirect to the page according to the numerical code informed. Script opens the browser prompt window and makes t...