How do I get and set an attribute of a CSS class

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    How do I get and set an attribute of a CSS class

    Anyone have an example of getting and setting an attribute of a CSS
    class defined at the top of an HTML page?

    Thanks in advance

  • Jonathan N. Little

    #2
    Re: How do I get and set an attribute of a CSS class

    Steve wrote:
    Anyone have an example of getting and setting an attribute of a CSS
    class defined at the top of an HTML page?
    Do you mean via JavaScript? Or do you mean inserting a STYLE element
    within the HEAD?

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO

    Comment

    • Steve

      #3
      Re: How do I get and set an attribute of a CSS class



      Jonathan N. Little wrote:
      Steve wrote:
      Anyone have an example of getting and setting an attribute of a CSS
      class defined at the top of an HTML page?
      >
      Do you mean via JavaScript? Or do you mean inserting a STYLE element
      within the HEAD?
      Setting it up in the HEAD and then using javascript to alter it
      dynamically.

      Comment

      Working...