Skip to content

Tag: html

Javascript won’t work properly with my form

So I am currently doing a project for our class, in which I have to display something that I previously stored in a database on a separate page. I chose to display every dataset, as it is the easiest to do. With PHP I implemented a foreach loop which is supposed to show each dataset with a button “EDIT&…

JQuery Search function for div containers

I am trying to use JQuery and this script (to filter my mySql output): the mySql entries I want to filter look like this in html: so each <div class=”card” id=”notes”> is one entry. The problem is (as you can see) I probally use this function wrong because I filter $(“#note…

Setting variable to target all divs with same Class

When selecting a class with querySelectorAll i get an uncaught error Uncaught TypeError: b.getBoundingClientRect is not a function at overlaps is there a way to fix that? I have div being generated with an ID ‘enemy’ and want to detect overlapping with my div ID “char”, but the functio…

JavaScript Onkeyup expiry date

How can i set onkeyup to output this format 00/00 instead 00/00/0000 Answer You could add maxlength=”5″ I also improved your regex to use replace and remove the / automatically