I have some inquiries regarding jQuery, specifically in relation to attributes:
- Is there a way to list or duplicate all attributes of a DOM element using a jQuery or DOM API call? Although the jQuery.attr() API allows this with known attribute names, is there a method for unknown attribute names?
- Is it feasible to generate a new CSS rule using a jQuery or DOM API call, beyond simply dynamically loading a new script?
It appears attainable since, when I access the JS debugger in Google Chrome by pressing CTRL-Shift-J and select a DOM element in the elements pane, I can view all its attributes without specifying them individually.