javascript - jQuery: DOM Elements: Attributes: query & create -


i have few questions jquery, relating attributes:

  1. is there jquery or dom api call use list or clone of attributes of dom element. jquery.attr() api call lets if know name of attribute, if don't, there way?
  2. is there jquery or dom api call use create new css rule, besides obvious 1 of dynamically loading new script?

it seems possible because when open js debugger in google chrome using ctrl-shift-j, , click on dom element in elements pane, can see of attributes of element without having ask them name.

  1. clone whole object, replicate attributes well, http://api.jquery.com/clone/
  2. add new style section head element using append, http://api.jquery.com/append/

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -