I am working with an API and their examples are dependent upon jQuery for manipulating the css selectors. Can someone please show me how I could accomplish this with either the Prototype library or else vanilla javaScript?
scrollEnd = function (element, dir, enable, init) {
var el = jQuery(element);
if (el.size()) {
if (enable) {
if (el.css('backgroundImage') == "none")
el.css('backgroundImage', element.button);
}
else {
element.button = el.css('backgroundImage');
el.css('backgroundImage', "none");
}
}
};
Vanilla
I know of no DOMElement that has an attribute
sizeANDbuttonthough .. what did I just write? 😛