!below is the code snippet
This is a multi-use property toggler. In the given example we are toggling a sub property of an element.
e -is the property owner to be targeted;
p - is the property name to be set;
v - is the property value;
henceforward changing the class-name of the property owner instead; - would look like this:
meaning that the target element can delegate the behavior instruction to some other element, while the event itself can remain bonded to a simple on/off button, i.e.:
Works in all browsers, in all manners except Firefox v(9.0.1) when used on style properties exhibiting a randomly appearing bug already filed at [ Bugzilla@Mozilla – Bug 720129 ], causing the toggle behavior to stop functioning in an toggle-on state.