Hi new to Javascript here so please be gentle. I want to write some js code that detects changes in an element's attribute. tia and any help is appreciated.
my code reads likes this:
$("#targetElement").attr('testAttr').change(function(){
//some code to do stuff
});