What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-03 10:41:07
bootstrap change image every second
var counter = 1; //instantiate a counter var maxImage = 5; //the total number of images that are available setInterval(function() { document.querySelector('header').style.backgroundImage = "url('images/" + (counter + 1) + ".jpg')";... Add solution -
Javascript 2021-10-02 07:02:02
how to make input field empty in javascript
const inputFeilds = document.querySelectorAll("input"); const validInputs = Array.from(inputFeilds).filter( input => input.value !== ""); console.log(validInputs) //[array with valid inputs] Add solution -
Javascript 2021-10-01 20:24:04
jspdf reduce size file
function genPDF() { html2canvas(document.querySelector(".page"), {scale: "2"}).then(canvas => { this.imgFile = canvas.toDataURL("image/jpeg", 0.3); var doc = new jsPDF('p', 'mm', 'a4', true); //and here is ... Add solution -
Javascript 2021-09-30 21:32:03
input field take only number and one comma
function checkKey() { var clean = this.value.replace(/[^0-9,]/g, "") .replace(/(,.*?),(.*,)?/, "$1"); // don't move cursor to end if no change if (clean !== this.value) this.value = clean; } // d... Add solution -
Html 2021-09-30 03:35:02
dynamic checkbox list in html
const DynamicCheckboxes = { checkboxes: document.querySelectorAll('.table td input[type="checkbox"]'), selectAllTarget: document.querySelector('.js-select-all'), clearBtn: document.querySelector('.js-clear'), initialize() { this.sh... Add solution
Best helpers
Ranking is empty