Skip to content

Input value from HTML not passing to modal

I am trying to pass the reservation id from HTML to modal. In pictures, when I click “cancel” next to reservation: preview of the screen A modal appears and it should contain the id number of reservation: preview Modal pops up but without the reservation id number. Please, what’s wrong? I fo…

REGEX – Match a pattern in a lengthy string

I am trying to match a particular pattern in a lengthy string: NEW ZEALAND AND (data.operator1:”SHELL AND AMP” AND data.field:”NEW ZEALAND”) OR (data.operator:purpose AND data.field:crank) OR (data.operator:REGULATOR AND data.field:HELICOPTOR) I want to select all the below values foll…

use “this” in a function passed to eventListener

Hello people I was refactoring some code and couldn’t figure a way to reuse the ‘this’: a/ Code I have b/ I want to move the function to another file and export it as: and use it like: but ‘this’ is undefined.. how do I bind it? Answer Pass this as parameter to function (and also…

Chosing one Element out of a paragraph with api

i’m experimenting with api’s and now tried to display the capital and borders of a country with this api on a card. This worked. Now i want to add a function so if you click on one of the borderneighbors it opens their card. For example i’m on germany now and on neighbors there is written : …