SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    md
    Posts
    180
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    asign class to name

    Is it posible to assign a class to a name value? such as name="div1", etc?

    Thanks!

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This code by Robert Nynan purports to allow an array of elements to be retrieved by any attribute such as name (of course if the name is unique, then the array will only contain a single element).

    Although I've not used that particular script, I've been grateful of his getElementsByClassName() on several occasions.

    Hope it helps.


    Andy
    From the English nation to a US location.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •