A jQuery plug-in to notify you of CSS, Attribute or Property changes in an element

Overview

selectWatch.js

jQuery plug-in gives an opportunity to monitor changes of DOM element's CSS styles, attributes, properties, input element or select element. It also gives a call-back when there is a change in the monitored styles or attributes. You will be notified if there is any change of CSS properties attribute or property names monitoring on the screen. With function delegate, which gets an object with names and current values, it will be shown the cause of changes.

Usage

To use the plugin add a reference to jQuery and a reference to this plugin to your page:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="selectWatch.min.js"></script>

<input id="myWatch" />

Make sure to include selectWatch.js script file after jquery.js

function callBack(oldValue, newValue, currentElement) {
            alert("Old: " + oldValue + " New: " + newValue);
            console.log(currentElement);
        }
var settings = {
            watchType: "input",
            timeOut: 1000
        };
$("#myWatch").selectWatch(callBack, settings);

Options

selectWatch plugin comes with options to configure how it works. All options below are optional. Default values are presented below.

Example:

var options = {
            watchType: "attr",
            attr: "myAttribute",
            ......
        };

watchType: <string> (required) | Options: element,attr,prop,input,select
timeOut: <int> (Optimal) | Default:100 |
attr: <string> (If you are attr using watchType) | Your custom Attribute name
prop: <string> (If you are prop using watchType) | Your element's css Style name is...

Method

selectRemove(): A method to remove an Element,CSS Style, Attribute, Input or Select monitoring.
Example: $("#myWatch").selectRemove();

You might also like...

This is just a script I put together to check and notify me via email (MailGun) when there's an earlier date before my initial appointment date. It doesn't handle rescheduling.

This is just a script I put together to check and notify me via email (MailGun) when there's an earlier date before my initial appointment date. It doesn't handle rescheduling.

US-visa-appointment-notifier This is just a script I put together to check and notify me via email (MailGun) when there's an earlier date before my in

Jan 4, 2023

Node.js script to notify stake data with Notifi Network

Node.js script to notify stake data with Notifi Network

Created by Timur Ruziev (participant of stakewars-iii) You can see my challenge report here: https://github.com/ruziev-dev/near-stakewars-iii Getting

Sep 6, 2022

Twitter like notify bar

jQuery Notify bar Please visit the project page for feedback and other details. Simple plugin (basically it's not a plugin, but widget) to show notify

May 8, 2022

Notify new channel created/renamed on Next-gen Slack platform

notify-new-channel Notify new channel created/renamed on Next-gen Slack platform Install Deploy and create triggers. slack deploy slack trigger create

Oct 10, 2022

Plug-in for Obsidian.md which will create Notes from JSON files

Import JSON This plug-in provides you with the tools to import your favourite JSON tables. A magnifying-glass icon will appear in the left margin when

Dec 31, 2022

Write and read comments on every page with a simple plug-in for your browser

Write and read comments on every page with a simple plug-in for your browser

Licom - comments on every webpage Licom is a simple plugin for your browser that adds the feature to leave comments on every page, even if it doesn't

Aug 4, 2022

A Hackable Markdown Note Application for Programmers. Version control, AI completion, mind map, documents encryption, code snippet running, integrated terminal, chart embedding, HTML applets, plug-in, and macro replacement.

A Hackable Markdown Note Application for Programmers. Version control, AI completion, mind map, documents encryption, code snippet running, integrated terminal, chart embedding, HTML applets, plug-in, and macro replacement.

Yank Note A hackable markdown note application for programmers Download | Try it Online Not ecommended English | 中文说明 [toc]{level: [2]} Highlights

Dec 31, 2022

A lightweight tooltip plug-in library

popper-next 是一款轻量的 Tooltip 插件 vue、react安装使用 推荐yarn yarn add popper-next 或者 cnpm install popper-next -S 在html页面中如何使用 script src="https://unpkg.com/pop

Dec 7, 2022

Robust, plug & play generator for Bootstrap toasts.

Bootstrap Toaster Robust, plug & play generator for Bootstrap toasts. Supports Bootstrap 4 and Bootstrap 5. Demo A demo page is available at bootstrap

Dec 21, 2022
Owner
Fatih Kazancı
Fatih Kazancı
Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute.

loading="lazy" attribute polyfill Fast and lightweight vanilla JavaScript polyfill for native lazy loading, meaning the behaviour to load elements rig

Maximilian Franzke 571 Dec 30, 2022
This plugin integrates by default with Twitter bootstrap using badges to display the maximum lenght of the field where the user is inserting text. Uses the HTML5 attribute "maxlength" to work.

Bootstrap MaxLength This plugin integrates by default with Twitter bootstrap using badges to display the maximum length of the field where the user is

Maurizio 772 Dec 25, 2022
A jQuery Plug-in to select the time with a clock inspired by the Android time picker.

Clock Timepicker Plugin for jQuery See a demo here A free jQuery Plug-in to select the time with a clock inspired by the Android time picker. This plu

Andy 51 Dec 22, 2022
JavaScript micro-library: pass in an element and a callback and this will trigger when you click anywhere other than the element

Add a click listener to fire a callback for everywhere on the window except your chosen element. Installation run npm install @lukeboyle/when-clicked-

Boyleing Point 5 May 13, 2021
Notify users of your Next.js app when a new deploy is available.

Next.js Deploy Notifications This library lets your users know when you've deployed a new version of your Next.js application. import { hasNewDeploy }

Ryan Toronto 25 Jan 2, 2023
Based on Google Chrome recorder, implement UI interface capture and notify the result to the target mailbox

chrome-recoder-crawler README-CN Modify the .js file exported by Google Chrome recorder. By default, the innerText property of the node operated in th

wudu 4 Oct 18, 2022
A GitHub app to report failed workflow job actions and notify pull request creator with custom report message for the failed workflow job.

Workflow Reporter A GitHub App built with Probot that reports failed workflow job actions and notify the pull request creator with custom report messa

Divyanshu Shekhar 14 Nov 12, 2022
Detect webpage updates and notify user to reload. support vite and umijs

English | 简体中文 plugin-web-update-notification Detect webpage updates and notify user to reload. support vite and umijs. Take the git commit hash as th

Utopia 57 Dec 26, 2022