Skip to content

Tag: html

Capture value from an input with svelte

I’m trying to capture the value of an input using the svelte framework When initializing the local environment I already get the following error in the console: Uncaught TypeError: Cannot read properties of null (reading ‘value’) Visual Studio Code marks the code snippet .value when I try to…

Create element inside another based on id

rigth now I have this code to draw some divs (based on some logic I’ll have parent and childs. So, my question is: if there is a way to get the parentDiv and draw inside the X childs elements and how can I do it? I tried with this: But I’m getting the .appendTo() is not a function error message.

Website Refreshes After Clicking Button JavaScript [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 7 months ago. Improve this question When…

After executing a function style is no more displayed

I need to display some boxes, however when I activate the function to order them the padding between each box desappears. Do you know how to fix this? There is also some css code for the style of the list. But when i execute the function mia_posizione the padding between the boxes is canceled and they are dis…