SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript help, doesn''t work in firefox

    Hi

    i have a survey in which i use javascript to hide some data unless the user clicks on a radio button, i use javascript for that. It works fine in internet explorer but doesn't work in firefox. I ran the java console on firefox and it says tag[x].getAttribute('id').. has no properties and
    Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
    Source File: http://irweb.erau.edu/alumnisurvey.htm
    Line: 1

    What could be the problem, i am posting some of my code for reference the site can be referenced at

    http://irweb.erau.edu/alumnisurvey.htm

    Any help would be appreciated i am in a deep mess and i have to sort this out as early as i can as this survey is running and i have had some problems from the users.

    thanks

    nimesh

  2. #2
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi nimesh_82, welcome to Sitepoint.

    Instead of:
    Code:
    tag[x].getAttribute('id')
    Can you just just use:
    Code:
    tag[x].id
    Regards,
    Jordan

  3. #3
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jordan

    Worked perfectly fine

    You are a genius

    thanks

    Nimesh

  4. #4
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You are welcome.


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
  •