A jQuery Plugin To Notify You of CSS Attribute or Property Changes In An Element

selectWatch.js is a jQuery plugin that provides an opportunity to monitor changes to the CSS styles of a DOM, attributes, properties, input element, or selection element.

selectWatch is a jQuery plugin for developers that monitor CSS styles, attributes, properties, and input/selection values ​​for a DOM element. It also provides a callback function that can be used to output old/new values ​​when run.

It also gives back a connection when there is a change in patterns or traits observed. You will be notified if there is any change in the CSS properties or monitor the property names on the screen. By using the job delegate, who gets an object with current names and values, the reason for the changes will be shown.

domsubtreemodified, jquery detect display change, jquery detect input value change dynamically, jquery change select option value, mutationobserver style change, get selected value of dropdown in jquery on change

How to make use of it:

1. Load the minified model of the jQuery select watch plugin after loading the jQuery JavaScript library.

<script src="/path/to/jquery.slim.min.js"></script>
<script src="/path/to/selectWatch.min.js"></script>

2. Select the sort you need to look ahead to.

var settings = {
    watchType: "element"
};

var settings = {
    watchType: "attr",
    attr: "MyAttribute"
};

var settings = {
    watchType: "prop",
    prop: "color"
};

var settings = {
    watchType: "input",
    timeOut: 1000
};

var settings = {
    watchType: "select",
    timeOut: 0
};

3. Define the callback functionality.

function callBack(oldValue, newValue) {
  alert("Old: " + oldValue + " New: " + newValue);
}

4. Attach the function to the specified factor and carried out.

$("#myElement").selectWatch(callBack, settings);

Watch For CSS/Attribute/Property/Input/Select Changes, selectWatch.js Plugin/Github, javascript detect style change, javascript select onchange get value


See Demo And Download

Official Website(fatihkazanci): Click Here

This superior jQuery/javascript plugin is developed by fatihkazanci. For extra Advanced Usages, please go to the official website.

Related Posts

vuejs-dialog-plugin

Vuejs Lightweight Prompt Based On Promise And Confirm Dialog

VUEJS DIALOG PLUGIN is a lightweight, promise-based, prompt, and dialog-based alert. Important updates The dialog will always be resolved by an object. (ie a callback to continue…

Lightweight-Flexbox-Carousel-Plugin

Simple and Lightweight Flexbox Carousel Plugin With JavaScript | flexCarousel.js

Flexbox Responsive Slider – flexCarousel.js plugin is a simple and lightweight plug-in from Flexbox carousel ES6 JavaScript. An unofficial fork by Slick Carousel. Flex Carousel is a…

bootstrap-5-multi-level-dropdown

Multi-Level Dropdown Works With Bootstrap 5

Bootstrap 5 Multi-Level Dropdown, using the official HTML without adding additional CSS styles and classes, it’s just like the original support. Not all of the things listed…

jquery-confirmation-dialog

JQuery UI Built Dynamic Modal That Uses Bootstrap | confirm.js

confirm.js is to use confirm modal created using JQuery and Bootstrap. Put events in each custom button in your web application. Easy to implement, saves time. Requirements…

bootstrap-responsive-navbar

[Bootstrap 5] Responsive Navbar With off-canvas Display on Mobile

The Bootstrap 5-off-canvas navigation menu is a responsive navigation system that combines BS5 components outside of the canvas and navbar. Must Read: Pure CSS Mobile-friendly Responsive Table…

Extract-The-Dominant-Color-From-Image

Extract The Dominant Color From Image | jquery.primarycolor.js

Primary Color jQuery plugin that gets the base color of an image. A callback event that lets you apply RGB coloring to any HTML element is supported….