What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-17 13:20:06
how to check if an element starts with class in jquery
/*SM*/ //Try using : $("[class^=info_]"); //Classes Starts with info_ $('[class*=info_]'); // Classes which contains info_ //instead of hasClass if($('label').is('[class*=info_]')){} //Contains //or if($('label').is('[class^=info_]')){} //S... Add solution -
Javascript 2022-01-26 08:17:48
jquery mutationobserver
// The node to be monitored var target = $( "#content" )[0]; // Create an observer instance var observer = new MutationObserver(function( mutations ) { mutations.forEach(function( mutation ) { var newNodes = mutation.addedNodes; // DOM N... Add solution -
Javascript 2021-11-19 01:29:18
toggle one class add and one class remove same time and after click remove class add and add class remove jquery
$(".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-11-11 14:05:11
javascript show popup on page refresh unsaved changes
var onReloadCheck = function () { $(window).on('beforeunload', function () { var modal = $('#myModal').hasClass('show'); if (modal) { return "If you leave before saving, your changes will be lost."... Add solution -
Javascript 2021-10-30 07:52:20
has not class jquery
if (!$(this).hasClass("test")) { Add solution -
Javascript 2021-10-29 18:46:12
jquery :not class
if (!$(this).hasClass("test")) { Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5