Great, it produces the value for whatever "id" is passed to the function.
http://www.java2s.com/Code/JavaScript/Development/GetaspecifiedelementusinggetElementById.htm
[code:1:1287ede953]
<html>
<head>
<script type="text/javascript">
function getElement(){
var x=document.getElementById("myHeader")
alert("I am a " + x.tagName + " element")
}
</script>
</head>
<body>
<h1 id="myHeader" onclick="getElement()">Click to see what element I am!</h1>
</body>
</html>[/code:1:1287ede953]
I want to get the value of this:
[code:1:98e83dc60d]<input type=hidden id="pid1" value="79.99">[/code:1:98e83dc60d]
The above style doesn't seem to work
Idiot it works, you just need to tell it you want the value!
VPSPackage = document.getElementById('pid'+VPSPackage).[b:3716f02bb7]value[/b:3716f02bb7]
javascript, specified, element, getelementbyid, produces, quot, http, www, getaspecifiedelementusinggetelementbyid, htm, ede, html, text, getelement, var, myheader, tagname, onclick, dc, input, pid, doesn, workidiot, vpspackage, bb,