I am using java-script to build a web page and I have multiple inputs of type text with read-only
attribute and I want to detect if any input has changed in its attributes for example if any input has removed its read-only attribute then do some thing with that input.
Note: I am going to change the read-only attribute using java-script code. And I want another code to detect that change of the attribute read-only.
I have tried this
$('input[readonly]').attrchange({
trackValues: true,
callback: function (event) {
}
but I need for any input in the document.