Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > the document.getElementById() tag is not working in javascript.

Reply
Thread Tools

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

 
 
adiraju_anuradha adiraju_anuradha is offline
Junior Member
Join Date: Mar 2012
Posts: 7
 
      11-08-2012
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>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parsing an XML file and adding another tag, if the tag is not available / the value is null P Perl Misc 7 01-12-2007 03:28 AM
Repeater: condition of a field being blank or not? to Tag or not to Tag HockeyFan ASP .Net 2 12-07-2006 03:53 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
To vlan tag or not to tag? budyerr Cisco 1 07-08-2004 03:45 AM
netscape 4.7: onmouseover not working when i put <a> tag within a div tag Eqbal Z Javascript 6 08-27-2003 12:56 AM



Advertisments