To randomize a list in HTML with Javascript use the following codes HTML CODE <div class=”container”> <h3>Shuffle List Randomly when page reload.</h3> <ul id=”grid” class=”list-inline”>… Read More →
How to Delete file in node js: Complete Guide for File Removal –
January 5, 2022
You can delete a file in Node.js using the built-in “fs” (File System) module. The “fs” module provides several methods for working with the file… Read More →
Generating PDF files with JavaScript
December 5, 2021
Generate PDF with JavaScript // Default export is a5 paper, portrait, using milimeters for units var doc = new jsPDF() doc.text(‘Hello world!’, 10, 10) doc.save(‘a5.pdf’)… Read More →
jQuery AJAX submit form | How To Submit AJAX Forms with JQuery
October 5, 2021
Submit AJAX Forms with JQuery // this is the id of the form $(“#idForm”).submit(function(e) { e.preventDefault(); // avoid to execute the actual submit of the… Read More →
add EventListener basic Javascript
January 20, 2020
add EventListener < span id=”elem”>Hello! < script > elem.addEventListener(‘click’,function(){ alert(‘hello’); }); </ script >
Create blinking notification with JavaScript Style .notification { position: fixed; z-index: 1000; padding: 5px; border: 1px solid black; font-size: 20px; background: white; text-align: center; }… Read More →