I would like to remove all CSS background images for a given element and all of its children with Javascript. This question is sort-of a spin off on another question I asked. The end goal is the same, to skin jQuery UI widgets.
I am currently using jquery/jquery-ui if any of would use these to solve the problem.
Any ideas?
bonus:
It would be wonderful to be able to remove background images for different jquery-ui states, BUT i've all but resolved myself to overriding these bg images via CSS.
EX: ui-state-hover, ui-state-active both have background images associated with them.
or
Please let me know if you think any kind of programmatic style overrides should not be done this way (please supply your reasoning).