Category "html"

How to enable HTML input field from Javascript

I'm using localStorage to save string so the user could enter title and it will be saved for the next times. I want to add a button that will delete the display

Integrate mapbox with fabric js

I am using fabric.js for html 5 interactive canvas app and I'm tryna to do an integration with mapbox, basically putting the map inside a fabric js element such

A reference list for html, like used in markdown for links and images

One of the most important things making markdown readable, is the reference list, containing the urls of links and images, which then appear in the visible text

Is there a way to the limit number of API response data display on HTML?

My Get request returns over 1050 pages in the console. I am trying to display in HTML and when I do, the result covers my page and the search bar. Is there any

Hide/show div using radiobutton functionality using Jquery

I have text & image wrapped in a div. Using Radiobutton the image & text should appear on the left & right. If you select left-icon radiobutton, the

Head (next/head) throwing error in NextJS

I am trying to add head to a page in NextJS. As per the documentation I have used next/head to add <head>. However, the code block for using next/head is

Head (next/head) throwing error in NextJS

I am trying to add head to a page in NextJS. As per the documentation I have used next/head to add <head>. However, the code block for using next/head is

jQuery doesn't want add class without point

jQuery doesn't want add class without point. Here's the html markup: <div class="form-group" id="plis"> <select class="form-control-input notEmpty"

What is the meaning of async resolve parameter in promises?

I have the following javascript code which will record voice for 3 seconds and then play it back: const recordAudio = () => new Promise(async resolve =>

JavaScript How to create elements into each created element?

I'm trying to put a content div into each parent div, but this way it puts all the content divs to the first parent div, not each parent div. I've tried to do i

Javascript and bootstrap won't work together

I have a product list, I made a js file which ads filter buttons and a search bar which works well but when I put it in my html file it stops working because of

Pyscript in Django application

I am wondering if we could use pyscript on HTML pages inside a Django project. I'd tried to use it but unfortunately, it doesn't work. this is the code : <he

functions with button.click() are not executing the click part

I have 2 function as below: <script type="text/javascript"> sm=()=>{ document.getElementById('show').click() console

Replace two chars in innerHTML for all elements with same class (vanilla js) [duplicate]

How can i replace two characters in multiple elements? I have found an answer using jquery but I am searching for vanilla js. I want to replac

How to close sidenav menu when click out of container div

I'm building a sidenav menu that appears and disappears when click a button. I learned a lot here about stacks, users have helped me up to this point, but now I

Creating cookie with a form values makes a null cookie

First of all, i need to create a cookie with a values that are in a form, and a lot of values are in a radio input type, but i ran into a problem with creating

Find position of all unique elements in array

let arrr = [7, 9, 30, 40, 50, 8, 1, 2, 3, 40, 90,2, 88,1]; output=[0, 1, 2, 3, 4, 5, 6, 7, 8 ,10, 12 ] I saved this code at javascript playgroun

Rails 7 vanilla-nested gem link to add item not working

I am trying to use the vanilla-nested gem, with Rails 7, to add an item in a nested edit form. The link is not work and not action results. I have tried to foll

Jekyll generate html code with newline problem

I use jekyll to generate my blog, and there is the code: ## 🤹🏽 Skills ### **Familiar with** <img align="left" alt="python" height="35px" sty

How to solve thymeleaf template parsing error

I'm trying to present a html to screen but I'm getting template parser error from thymeleaf. Here is my code and error: index.html: <body> <h2>M