I have a little problem with some things that I'm doing in js and that are not working well for me.
The subject is like this: I have a select where the user chooses options:
<select id="cobertura" name="cobertura">
<option value=""...
When we use the Constructor new Array() in ES5 to build a new fix we do the following:
EXAMPLE 1
let elementos = new Array(2);
console.log(elementos[0]);
console.log(elementos[1]);
//ambos console darán undefined
Howeve...
The fact is that I have this code and it only converts the first letter. The fact is that I want you to convert the first letters of each word and I do not know how to do it.
document.write("Nombre y apellidos<input type='text' id='dato...
Suppose that the following return came from a function:
return {
x: 199,
y: 200
}
Eye: I can not change the return itself.
How can I then from where I receive the return modify it? That is, for example:
I got x:...
I have a table in the database in which I keep all the functions of my menu, it has the following columns:
table: functions /
columns: id, father_id, icon, link, title
And I want to order the parents and children as I have registered in th...
I have the following JSON
"values": [
["Martes", "pan", [8, [4],[0]], 7.381498329613434]
]
}
What would be the way to show the value: 7.381498329613434 in my Javascript console?
Thank you very much
Hi, I would like to know how I can subtract two date objects. I have a variable date of birth and I want to subtract the current day in order to get the years of difference ...
var f = new Date();
var xf = (f.getDate() + "...
Hello, I have the following code:
My idea is that when calling this function insert a row in a table and to operate on it put an id to the TR, which I generate with the variable counter, the problem is that I have assigned the id ... but it doe...