SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2005
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document

    well, i am a new bee, my php scripts run fine in IE but i get the following warnings in mozilla:
    Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
    Source File: http://phpsrv/vas/admin1/category/ad...y.php?mode=add
    Line: 72

    Line 72 is;
    PHP Code:
        if (document.frm.txtType.selectedIndex == 0) { 
    kindly help.

  2. #2
    SitePoint Guru momos's Avatar
    Join Date
    Apr 2004
    Location
    Belgium
    Posts
    920
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should give your form(frm) and field(txtType) an Id and call:
    document.getElementById('frm').getElementById('txtType').selectedIndex


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
  •