SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Dec 2003
    Location
    CA
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    access to elements without IDs

    Hello,

    I've been asked to build a small ecommerce site using this free shopping cart. However, the shopping cart designer did not tag all the elements with IDs. How can I access specific elements such as tables and forms without IDs? Most of the form elements have name attributes. Is there a method to access that? All I want to do is add some styling to the free cart so it integrates into the existing site design. The free cart allows me a header and footer so scripting is available. I can change tables and forms globally with css and tagNames but I would like to access a specific table. I hope I am making myself clear.

    marshn

  2. #2
    SitePoint Addict
    Join Date
    May 2004
    Location
    Europe
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Forms with a name can be accessed with document.forms["theFormName"] or even document.theFormName. About the table, it sure can be accessed, you just have to find something that differentiates it from all other tables. Can you be a bit more specific?


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
  •