Press "Enter" to skip to content

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.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *