I'm starting to study JavaScript, but in several books and web queries the terms methods and commands appear, but from what I see both use () and perform the same action.
For example, this is a command:
var name = "Ejemplo"; aler...
I want to capture the value of src and pass it to a CSS variable, which is in the inline style of the container parent named --img-url .
The idea that I have in the html, I have this:
<figure class="img-container" style="--i...
Inside the template of the Event.vue component I have a select that reads from the wallet table, it is a normal select to choose only one type of wallet (it is not multiselect), for that select I occupy the vue-multiselect component to make a si...
I found this code that generates random alphanumeric codes, I am using it to link 2 types of users, the user can only generate the code once and save it in a table with id and code, then that code is given to other users so that they register it...
I have a Video Game programmed in HTML and JavaScript from which I wish to pass the points obtained to the MySQL Database and I can not find the correct way to achieve it.
JavaScript Code:
function updateScore(){
var score = (snakeLengt...
I am extracting data from a web with a series of tables that are loaded with data according to the tab that you select and I can not do the corresponding 'onclick'. The id of the element changes randomly and also the property of the onclick attr...
I have a Google map where I can put a marker, drag it and with it goes a circle that is the search radius.
My problem is that if I click inside the radio it does not call me to the event that makes the marker move to the position of the point...
I build a regular expression to locate a piece of text:
var re = /Incident:(.*)\tDescriptio/gm;
var m;
while ((m = re.exec(resultados_texto)) !== null) {
if (m.index === re.lastIndex) {
re.lastIndex++;
}
}
where result...
I have 2 arrangements of objects
The first one called data :
const data = [
{
id: 1,
nombre: 'Piero',
},
{
id: 4,
nombre: 'Nelson',
},
{
id: 7,
nombre: 'Diego'
},
]
and the second one called subs :...
Hello friends I am trying to create a pdf to print some tickets, I am using boostrap to format html and to create the PDF jspdf and html2pdf
The problem is that I want to accommodate 4 tickets on a letter sheet, but my code only generates 1 p...