the document.getElementById() tag is not working in javascript.

Discussion in 'Java' started by adiraju_anuradha, Nov 8, 2012.

  1. adiraju_anuradha

    adiraju_anuradha

    Joined:
    Mar 14, 2012
    Messages:
    2
    Likes Received:
    0
    all the other features of javascript r working except for this tag getElementById().can anyone tell me how to make it work????


    <html>
    <body>
    <script>
    alert(document.getElementById('mine').value);

    </script>
    <input type="text" id="mine" value="ooo"/>
    </body>
    </html>
     
    adiraju_anuradha, Nov 8, 2012
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shruds
    Replies:
    1
    Views:
    1,270
    John C. Bollinger
    Jan 27, 2006
  2. Nathan Sokalski

    JavaScript, Windows Mobile, and document.getElementById()

    Nathan Sokalski, May 26, 2009, in forum: ASP .Net Mobile
    Replies:
    4
    Views:
    1,854
    robgbne@gmail.com
    May 29, 2009
  3. Eqbal Z
    Replies:
    6
    Views:
    427
    Eqbal Z
    Aug 27, 2003
  4. lawrence
    Replies:
    1
    Views:
    445
    Vincent van Beveren
    Jun 11, 2004
  5. wk
    Replies:
    5
    Views:
    597
    Dietmar Meier
    Apr 22, 2005
  6. Martin
    Replies:
    3
    Views:
    334
  7. dal.luc@gmail.com

    document.all and document.getElementById

    dal.luc@gmail.com, Nov 20, 2006, in forum: Javascript
    Replies:
    4
    Views:
    407
    Jonas Raoni
    Nov 21, 2006
  8. AC
    Replies:
    11
    Views:
    442
Loading...