What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-16 23:56:03
jquery like selector in javascript
var $ = (function () { 'use strict'; /** * Create the constructor * @param {String} selector The selector to use */ var Constructor = function (selector) { if (!selector) return; if (selector === 'document') { this.elems = [document]; ... Add solution -
PHP 2021-09-06 21:08:02
laravel download file from storage with progress bar
<script type="text/javascript"> $(".download").click(function(){ window.location.href = 'file/30mb.pdf'; //set your file url which want to download var data = []; for (var i = 0; i < 100000; i++) { var tmp... Add solution -
Javascript 2021-09-03 08:45:01
how to use moment to compare time for calendar change color
var checkTime = function () { var hour = $(".hour").text().trim(); var time = moment(hour, "LT"); console.log(time) //remove any old classes from element $(".hour").removeClass(".present .past .futu... Add solution -
Javascript 2021-08-29 18:55:01
toggle jquery remove others
$(".nav-link").click(function () { // If the clicked element has the active class, remove the active class from EVERY .nav-link>.state element if ($(this).hasClass("active")) { $(".nav-link").removeClass("acti... Add solution -
Javascript 2021-08-27 14:12:02
jquery div hide show not working in wordpress
jQuery(document).ready(function($) { $('#menu-links li a').click(function() { //fetch the class of the clicked item var clickedClass = $(this).attr('class'); //reset the active class on all the buttons $('#menu-links li').removeClass('ac... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5