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
    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. Advertising

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:
    779
    John C. Bollinger
    Jan 27, 2006
  2. wk
    Replies:
    5
    Views:
    164
    Dietmar Meier
    Apr 22, 2005
  3. Martin
    Replies:
    3
    Views:
    145
  4. dal.luc@gmail.com

    document.all and document.getElementById

    dal.luc@gmail.com, Nov 20, 2006, in forum: Javascript
    Replies:
    4
    Views:
    160
    Jonas Raoni
    Nov 21, 2006
  5. AC
    Replies:
    11
    Views:
    213
Loading...

Share This Page